Push notifications Android using Parse Server
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
We know how to embed a ViewController in a NavigationController in Storyboard. However, I came across a scenario where I had to initiate it programmatically. The code: let viewController = MyViewController() let nav = UINavigationController(rootViewController: viewController) self.navigationController?.present(nav, animated: true, completion: nil)
While working on the android app, I discovered the following error: Skipped 55 frames! The application may be doing too much work on its main thread. I realized I was running heavy processing and UI updates on the same thread. A time consuming task (such as fetching data, filtering arrays) should run in its own … Continue reading Android Threads and updates on Main Thread
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.