Unable to dismiss CNContactViewController

前端 未结 3 2193
无人共我
无人共我 2021-01-05 03:04

I\'m trying to let the user create a new contact. While I\'ve got the screen to prompt the user to put in all his details there is no navigation bar at the top(Like there is

3条回答
  •  温柔的废话
    2021-01-05 03:35

    Since you are presenting contactPicker viewcontroller on top of current active controller, you will not have access to navigationbar as the view is presented fully,if you want to have button's as in Apple contact app you need to embed your presenting viewcontroller inside UINavigationController, and add left and right bar button items.

    Refer the following apple sample which demonstrates the same. https://developer.apple.com/library/ios/samplecode/iPhoneCoreDataRecipes/Listings/Classes_RecipeAddViewController_m.html

提交回复
热议问题