Post

Replies

Boosts

Views

Activity

Reply to How do I set UICloudSharingController.availablePermissions to not allow participants other than the owner of CKShare to copy or send a link from UICloudSharingController?
I figured out what's confusing me. With the latest iOS (16.1.2), UICloudSharingController doesn't restrict who can have access to the share when I set the availablePermissions to include .allowReadOnly and exclude .allowReadWrite. I need to post a different question to ask that.
Topic: Programming Languages SubTopic: Swift Tags:
Dec ’22
Reply to How do I get the value of UITextField text instance property and update UITableView row whenever the user edits the UITextField text property?
Here's my code below. The textfield is outside of the table view. I do use reloadRows. I call it from textField(:charactersShouldChangeIn::). It reloads the row so that the table view cell in the row shows the current state of text field's text property before the text property is updated with the change the user made. self.temporaryMessageBeingEdited?.subject is type String, as you must realize. This temporaryMessageBeingEdited object is in the array the table view uses at the same chronological position as the table view row that is reloaded as must be obvious to you. Neither the textDidChange(:) nor the textWillChange(:) ever fires, though the other two callback methods of the UITextInputDelegate do fire when I test the code by typing into the text field during run time. // MARK: - UITextFieldDelegate extension MessagesViewController: UITextFieldDelegate {       func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {           print("#", #function)           guard string != "\n" else {       return false     }           self.temporaryMessageBeingEdited?.subject = self.textFieldSubject.text           if let guardedIndexPathToReload = self.indexPathOfMessageBeingEdited {       self.tableView.reloadRows(at: [guardedIndexPathToReload], with: .none)     }           return true   }     } // MARK: - UITextInputDelegate extension MessagesViewController: UITextInputDelegate {       func selectionWillChange(_ textInput: UITextInput?) {     print("#", #function)   }       func selectionDidChange(_ textInput: UITextInput?) {     print("#", #function)   }       func textWillChange(_ textInput: UITextInput?) {     print("#", #function)   }       func textDidChange(_ textInput: UITextInput?) {      print("#", #function)   }          }         }     }
Topic: UI Frameworks SubTopic: UIKit Tags:
Dec ’22
Reply to BackgroundTasks Refresh debug error: No task request with identifier <decode: missing data> has been scheduled
I read somewhere on stack overflow that the queue only holds one background task at a time. Is that true? Is that only during development? What happens to the other background tasks that are submitted if the queue only holds one background task? This could be the problem.
Replies
Boosts
Views
Activity
Nov ’22
Reply to How do I set UICloudSharingController.availablePermissions to not allow participants other than the owner of CKShare to copy or send a link from UICloudSharingController?
I figured out what's confusing me. With the latest iOS (16.1.2), UICloudSharingController doesn't restrict who can have access to the share when I set the availablePermissions to include .allowReadOnly and exclude .allowReadWrite. I need to post a different question to ask that.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to What does .allowReadWrite property of UICloudSharingController allow the current user to do if his/her participant permission property is readWrite?
I figured out what's confusing me. With the latest iOS (16.1.2), UICloudSharingController doesn't restrict who can have access to the share when I set the availablePermissions to include .allowReadOnly and exclude .allowReadWrite. I need to post a different question to ask that.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to Is it possible to get other apps ICON?
Did you figure this out? How do you find another app's bundle in iOS?
Topic: App & System Services SubTopic: Drivers Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to How do I get the value of UITextField text instance property and update UITableView row whenever the user edits the UITextField text property?
Here's my code below. The textfield is outside of the table view. I do use reloadRows. I call it from textField(:charactersShouldChangeIn::). It reloads the row so that the table view cell in the row shows the current state of text field's text property before the text property is updated with the change the user made. self.temporaryMessageBeingEdited?.subject is type String, as you must realize. This temporaryMessageBeingEdited object is in the array the table view uses at the same chronological position as the table view row that is reloaded as must be obvious to you. Neither the textDidChange(:) nor the textWillChange(:) ever fires, though the other two callback methods of the UITextInputDelegate do fire when I test the code by typing into the text field during run time. // MARK: - UITextFieldDelegate extension MessagesViewController: UITextFieldDelegate {       func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {           print("#", #function)           guard string != "\n" else {       return false     }           self.temporaryMessageBeingEdited?.subject = self.textFieldSubject.text           if let guardedIndexPathToReload = self.indexPathOfMessageBeingEdited {       self.tableView.reloadRows(at: [guardedIndexPathToReload], with: .none)     }           return true   }     } // MARK: - UITextInputDelegate extension MessagesViewController: UITextInputDelegate {       func selectionWillChange(_ textInput: UITextInput?) {     print("#", #function)   }       func selectionDidChange(_ textInput: UITextInput?) {     print("#", #function)   }       func textWillChange(_ textInput: UITextInput?) {     print("#", #function)   }       func textDidChange(_ textInput: UITextInput?) {      print("#", #function)   }          }         }     }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’22
Reply to New Forums?
Hey KMT, I haven't been able to get answers to my posts. What do I need to do about this? Daniel
Replies
Boosts
Views
Activity
Jan ’23
Reply to Swift file reading permission error on macOS sandbox
Does this apply to Xcode iOS projects too?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Apr ’23
Reply to How to present a UIAlertController from controller in main window and make it appear above a controller in an overlaid UIWindow
Would this work if use it from my Share Controller to tell the user that the act of sharing occurred or succeeded when the user uses my share extension by telling an app to share with my app?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to CNContactViewController highlightPropertyWithKey produces blank VC
I have the same problem that the property doesn't get highlighted, except the error message is: "[PPT] Error creating the CFMessagePort needed to communicate with PPT." Is there a current solution or workaround?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
May ’23
Reply to CNContactViewController highlightPropertyWithKey produces blank VC
Hi @kontiki, have you figured out how to get the highlightProperty of CNContactViewController to work?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Aug ’23
Reply to "PosterBoard quit unexpectedly." warning in my Mac running macOS 13.4.1(c)
I have no idea what PosterBoard is. One of the questions in Apple Forums indicated it had something to do with Simulator as I understand it, but I would think an actual device would also have common software with Simulator. But I still believe I don't know.
Replies
Boosts
Views
Activity
Aug ’23
Reply to XCode 15 Beta 5 does not show my iPhone as a run destination
Do you have a solution for this now that Xcode 15 has been released?
Replies
Boosts
Views
Activity
Nov ’23
Reply to How do I request permission from Apple to access the lightning port to customize with my app?
I found it. MFi Program.
Topic: Code Signing SubTopic: Entitlements Tags:
Replies
Boosts
Views
Activity
Dec ’23
Reply to Xcode 15 will not connect to ios17 device via network
iOS 17 emulator? Is that the same as simulator?
Replies
Boosts
Views
Activity
Mar ’24
Reply to Xcode Lagging Continuously - Force Quit Doesn't Work!!!
I am able to force quit, but it still lags when I restart Xcode & even restart my Mac Pro.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Mar ’24