Safe area layout is introduced in iOS11 but what can we do if we are supporting < iOS 11 and we have a xib view that is initiated in a ViewController and somehow the upper part of the xib view appears behind the NavigationBar??? To fix this, simply add this line in your viewDidLoad. self.edgesForExtendedLayout … Continue reading Safe area fix guide for earlier versions of iOS
Problem! We all know now that identifierForVendor doesn't remain unique on iOS Devices. It changes when the user deletes all of the apps from the same vendor. According to Apple: The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value … Continue reading Unique ID on iOS Devices
Create a file named Podfile in root project directory. platform :ios, '11.0' inhibit_all_warnings! use_frameworks! target 'MyApp' do pod 'SwiftyJSON' end Run pod install and open .xcworkspace file.
In Xcode you will need to remove the intermediate build information at some point. If you are having build issues, removing derived data works like magic. Keyboard shortcut in Xcode: Shift+Alt+Command+K Command line: rm -rf ~/Library/Developer/Xcode/DerivedData
set height get height getHeight setHeight getWidth width position x y ios