Post

Replies

Boosts

Views

Activity

get device TimeZone as America/Los_Angeles format
I need the timezone of the device for a registration flow. It get's submitted to a backend server. I setup a device and adjusted the TimeZone to San Francisco and tried the following. swift let identifier = TimeZone.current.identifier The identifier is US/Pacific - looking nice to me. But the server developer isn't happy about that. He expects the format America/Los_Angeles I tried to get that fomat but failed, any solution to the issue?
8
0
1.9k
May ’21
UIStepper autorepeat & isContinuous not working
Hi, I use UISteppers inside UICollectionViewCells. I configured everything by Xib, but the autorepeat and isContinuous get ignored. IBAction method gets called once. If I tap and hold nothing happens. This. only happens inside CollectionViewCells - if used in a normal View or TableViewCell everything seems to work as expected. Anyone has seen this issue before and knows how to resolve it? Best Regards, Kai
2
0
565
Sep ’20
AVPlayerViewController black screen after fullscreen zoom
I embedded an AVPlayerViewController inside of my ViewController like that: avPlayerViewController.player = AVPlayer(url: viewModel.videoURL) avPlayerViewController.delegate = self addChild(avPlayerViewController) view.addSubview(avPlayerViewController.view) avPlayerViewController.view.translatesAutoresizingMaskIntoConstraints = false NSLayoutConstraint.activate([ avPlayerViewController.view.centerXAnchor.constraint(equalTo: videoContainerView.centerXAnchor), avPlayerViewController.view.centerYAnchor.constraint(equalTo: videoContainerView.centerYAnchor), avPlayerViewController.view.widthAnchor.constraint(equalTo: videoContainerView.widthAnchor), avPlayerViewController.view.heightAnchor.constraint(equalTo: videoContainerView.heightAnchor) ]) avPlayerViewController.didMove(toParent: parent)If video playback is runing I can open fullscreen mode (and leave it). But if I use pinch to zoom the running video, at the moment my fingers lift from screen I can see the running video zoom back to normal size and next all I can see is a black screen. I can still hear the audio from video playback, but no interaction is possible.Xcode 11.2.1 gets used.Any solution for this issue known?Regards,Kai
2
0
2.3k
Dec ’19
UITableView gets deselected at swpie action
Hi,I'm using a UITableViewController to sellect multiple cells.tableView.allowsMultipleSelection = true tableView.allowsSelectionDuringEditing = trueThis works fine until the user makes a swipe action. A the moment the swipe action start all TableViewCells get deselected. Is there a way to keep selection state?
4
0
2.7k
Nov ’18