CNContactViewController forUnknownContact unusable, destroys interface

I’ve hidden the UINavigationController method for show or hide the navigation bar by using categories: @interface UINavigationController (contacts) @end @implementation UINavigationController (contacts) – (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated { NSLog(@”Hide: %d”, hidden); } @end This way the CNContactViewController cannot make the navigation bar to disappear. Setting a breakpoint on NSLog I discovered that this method is called by … Read more

Is it possible to disable ATS in iOS 9 just for debug environment?

My solution is to keep ATS disable option at the default NO value and add a New Run Script Phase to change it in the app bundle’s Info.plist when building the app. This is the script: #Disables ATS in debug builds. INFOPLIST=”${TARGET_BUILD_DIR}””${INFOPLIST_PATH}” case “${CONFIGURATION}” in “Release”|”Adhoc”) /usr/libexec/PlistBuddy -c “Set :NSAppTransportSecurity:NSAllowsArbitraryLoads NO” “${INFOPLIST}” ;; “Debug”) /usr/libexec/PlistBuddy … Read more