Post

Replies

Boosts

Views

Activity

Reply to Table view is not shown in the simulator
Have you set constraints to position the tableView ? You should, it may just be offscreen. Have you populated the tableView with content ? You need to define the required dataSource and delegate func for the tableView. And make sure delegate and datasource are properly set. Otherwise, an empty tableView shows nothing. To better see what happens, select tableView in IB ; in Attributes Inspector, set its view bg color to red. And check if you see something.
Mar ’21
Reply to Storyboard: How do I change the iOS version to see layout changes?
They used to be simple scroll wheels  If you select the picker in IB and look at Attributes Inspector, you can select Wheels for preferred style instead of Automatic. That will give you the style you were accustomed with. To select another iOS version in simulator, just select the appropriate simulator. In Xcode, I think you have to return to an older version of Xcode.
Mar ’21
Reply to How to read property list (binary format) if the iOS fails to load it via NSPropertyListSerialization
I tested in playground (Xcode 12.4). Works with 128. Fails with 129, with a different error message: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected character b at line 1" UserInfo={NSDebugDescription=Unexpected character b at line 1, kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Conversion of string failed."
Topic: App & System Services SubTopic: General Tags:
Mar ’21
Reply to UICollectionView Cell Structure Animation Affects Multiple Cells
No, that should not do this, you have a design, error somewhere. Could you show how and where you do the animation ? On which event ? Is it when you select the cell ? Here is an example (for a collectionView, but transpose directly to tableView cell: func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { selectedCollectionItem = indexPath.row let cell = collectionView.cellForItem(at: indexPath) UIView.animate(withDuration: 2.0, delay: 0.0, options: .curveEaseOut, animations: { cell?.layer.zPosition = cell!.isSelected ? 1 : -1 cell?.transform = cell!.isSelected ? CGAffineTransform(scaleX: 1.5, y: 1.5) : CGAffineTransform.identity }, completion: { (done) in cell?.transform = CGAffineTransform.identity self.performSegue(withIdentifier: "SomeSegue", sender:self) }). // I segue once animation done }
Topic: UI Frameworks SubTopic: UIKit Tags:
Mar ’21