Controller A open Controller B After Controller B close, b return a value to A 1. Declare a protocol in A or B protocol SearchPartProtocol{ func ReturnValue(value: [PartItem]) } 2. Controller A implement the protocol Class ControllerA: UIViewController, SearchPartProtocol { var variableReceiveReturnValue : [PartItem] = [] .... // MARK - SearchPartProtocol func ReturnValue(value: [PartItem]) { variableReceiveReturnValue = value } .... } 3. In Controller B, declare a var delegate: Class ControllerB: UIViewController { var delegate : SearchPartProtocol? func viewDidLoad() { } func viewWillDisappear(_ animated: bool) { if delegate != nil{ delegate.ReturnValue(value: valueNeedToBeRet...
Push Notification 1. Register App Push Notifications First, the App must obtain a token from the APNS (Apple Push Notification Service). The APNS is a service provided by Apple that takes care of the security and integrity of the data. The request for the app-token to the APNS, i.e. the token that uniquely identifies your app, is made from the app using the UNUserNotificationCenter class. In order for the app to be able to receive push notifications at all, the switch for push notifications must be activated in the capability settings. This results in the App Id being updated for Push Notifications and a new Provisioning Profile being created as long as automatic-signing is activated. In the case of manual administration, the provisioning profile would have to be updated in this case. The request can now be made to the APNS. As I already said, for this the class UNUserNotificationCenter can be used. As you can see, you can pass different options to this meth...
How to distribute an iOS in House app with apple developer Enterprise program Register to Apple Developer Enterprise Program Go to https://developer.apple.com/programs/enterprise/ What you must: · Distribute proprietary apps within your own organization · Have a legal entity · Have a D-U-N-S Number · Be the legal referent within your structure · Have a website · Have an Apple ID Price is $299/year. Create an In House distribution certificate The procedure to generate an IPA remains the same. While you are creating your certificate (step 2), select In House and Ad Hoc in the Production section. The only difference is at the creation of your Pro...
Comments
Post a Comment