After creating Localizable.strings I cannot add Base localization. I can add any other language, but Base is simply missing. How to allow Base there?
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Shadow disappear on all cells of this type inside tableView once I do insertRow(at:) or deleteRow(at:) in BatchUpdates. Once animation completed shadow appears back for all cells. Any ideas how to keep shadow while insertRow(at:) animates?class PlaceholderCell: UITableViewCell {
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
backgroundColor = .white
selectionStyle = .none
layer.shadowColor = UIColor.black.cgColor
layer.shadowOffset = CGSize(width: 0, height: 10)
layer.shadowRadius = 10.0
layer.shadowOpacity = 0.5
layer.masksToBounds = false
clipsToBounds = false
}
required init?(coder: NSCoder) {
super.init(coder: coder)
}
}
I have a UICollectionView with cells that are loading from CoreData.User can reorder cells in UICollectionView (it must be reflected in CoreData).Cells must be loaded in certain order user saved before.Q: How to save/load order in CoreData safely (I will add iCloud sync later also)?I don't mean overall tips like "add index to entity" or similar. I mean real technique that is 100% stable and ready for synching with iCloud, will not cause any problems and data loss, will not rebuild all data each time etc. Thanks for any help!Maybe Core Data has built-in mechanism to handle that. The only thing I've found is ordered one-to-many relationships, but I completely cannot find any detailed info with examples about how it works and even if that's what I am looking for.
Hi, How to keep Cells in UICollectionView live, still not destroyed on some distance outside from UICollectionView when it's not visible already?I have 2 reasons if it can help:Shadow disappear once Cell is outside ViewI have animation of custom FlowLayout (zooming out) and it's not perfectly like expected, cell animates from edge, not from few points outside as expected (because animation starts when side Cell was not dequeued yet)So, as for now, UICollectionViewCell is being destroyed once it's not visible. I need it to be destroyed only when it goes for example by 50 points away from the UICollectionView. I need only original cells, not any kind of it's snapshots/copies.Thanks.