I have set up app group, I am able to go to application but unable to call its delegate functions or view controller delegate function which make me in trouble to navigate it to a particular page of my application.how can i solve this issue? please help me out.
@IBAction func btnseconbutton3(_ sender: Any) {
var responder: UIResponder? = self as UIResponder
let selector = #selector(self.openURL(_:))
while responder != nil {
if responder!.responds(to: selector) && responder != self {
responder!.perform(selector, with: URL(string: "SecurityPPSwiftFinal://")!)
return
}
responder = responder?.next
}
}
func openURL(_ url: URL) {
return
}
//In appdelegate method
let defaults = UserDefaults(suiteName: "group.com.example.SecurityPPSwiftFinal") defaults?.synchronize()|
// In landing page i.e main view contoller will appear code
override func viewWillAppear(_ animated: Bool) { let defaults = UserDefaults(suiteName: "group.com.example.SecurityPPSwiftFinal") defaults?.synchronize() }