I display contact detail page from my application using following code
let unkvc = CNContactViewController(forContact: Contact)
unkvc.contactStore = CNContactStore()
unkvc.delegate = self
unkvc.allowsActions = true
self.navigationController?.pushViewController(unkvc, animated: true)
Where Contact
is CNContact
's object
When its push unkvc
controller its show navigation bar its show navigationbar with back button and default edit button on right side.
but if contact has image and when i click on image its show fullscreen image but its hide navigation bar when back from image there is no navigation bar so i have no option to go back in my application page. so how to prevent it from hiding navigationbar
This is a known Apple bug apparently.
you can find fixes for this at: https://stackoverflow.com/a/34289350/4734164