Post

Replies

Boosts

Views

Activity

Reply to Updating a collectionView after dismissing VC
functionToUpdate is a generic name. I don't know the name of update function you want to call. So, in HerdViewController, you should have: func functionToUpdate() {     // update the collectionView here } And in HorseViewController override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) if let vc1 = self.navigationController?.topViewController as? HerdViewController { vc1.functionToUpdate() } } May be you can pass the list of cells to update or to remove as a function parameter, to avoid reloading the full collectionView. Note: effectively, you must not dismiss a view in a Navigation stack.
Topic: Programming Languages SubTopic: Swift Tags:
Feb ’21
Reply to Ask a Question
I suppose you are new on the forum and just wanted to test ? Welcome. So, here is an answer 😉, not sure it will become Apple recommended ! That's the opportunity to learn some good practices, don't forget to close the thread by marking correct answer. And now, don't hesitate to use the forum to ask technical developer's question.
Feb ’21
Reply to Developer Account on my iPhone 11
The AppStore on my phone is maybe self developed What do you mean, that does not make any sense for me. The Appstore is the appstore, there is a unique Apple app to access it. So you are safe on this side. So I wanted to ask if somebody of you can check my phone to know how insecure my privacy I don't think that is something we can do on the forum. The only point is : take care of the apps you install, notably with games. Whatever the appstore controls, one need to be careful not to download unknown stuff. Could check on the web if there are any notice for the app you look at most important: be cautious with mails, never open through a link in mail unless you have inspected the link (does it seem valid) and better access yourself to the website that seems referenced in the mail. why the experimental Features of my Safari Browser are partly activated? Could you explain ? The iOS „14.4 (18D52)“ is a developer version right? No, that is the release version. An advice: if you are not a specialist, never try to install beta versions of iOS or MacOS. It may run you into problems you would be unable to solve.
Feb ’21
Reply to How can disable the "Move Window to Left Side of Screen" option of window's resize button?
Move Window to Left Side Do you mean: Tile Window to Left Side What you can do is disable the button: in IB, select the window (in the windowController) Open Attributes Inspector There is a "Control" section Uncheck Resize I'vo not found how to disable sub options. Maybe you could do something in optional func windowWillResize(_ sender: NSWindow, to frameSize: NSSize) - NSSize to forbid the change to a split screen format…
Topic: UI Frameworks SubTopic: AppKit Tags:
Feb ’21
Reply to Drag & Drop(Collection View)
I would try the following: In UICollectionViewDragDelegate in func collectionView(UICollectionView, itemsForBeginning: UIDragSession, at: IndexPath) - [UIDragItem] If you have multiple selection, either return an empty array or just a single item.
Topic: UI Frameworks SubTopic: UIKit Tags:
Feb ’21