Required plugins for this example: MBS MacBase Plugin, MBS MacCloud Plugin, MBS Mac64bit Plugin, MBS Main Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Mac64bit/Contacts/CNContactPickerViewController Test
Class App Inherits MobileApplication
End Class
Class Screen1 Inherits MobileScreen
Control Button1 Inherits MobileButton
ControlInstance Button1 Inherits MobileButton
Constraint Constraint 1
Constraint Constraint 2
Constraint Constraint 3
Constraint Constraint 4
EventHandler Sub Pressed()
picker = New MyCNContactPickerViewControllerMBS
picker.Present
End EventHandler
End Control
Property picker As myCNContactPickerViewControllerMBS
End Class
Class LaunchScreen Inherits iosView
End Class
Class MyCNContactPickerViewControllerMBS Inherits CNContactPickerViewControllerMBS
EventHandler Sub didCancel()
System.DebugLog CurrentMethodName
End EventHandler
EventHandler Sub didSelectContact(contact as CNContactMBS)
System.DebugLog CurrentMethodName
System.DebugLog contact.givenName +" "+contact.familyName
Break // see in debugger
End EventHandler
End Class