How to create dispatch queue in swift 3

Published on

Create dispatch queue in swift 3. In Swift 2, I was able to create queue with the following code. Creating a concurrent queue let concurrentQueue = DispatchQueue(label: “queuename”, attributes: .concurrent) concurrentQueue.sync { } Create a serial queue let serialQueue = DispatchQueue(label: “queuename”) serialQueue.sync { } Get main queue asynchronously DispatchQueue.main.async { } Get main queue synchronously … Continue reading How to create dispatch queue in swift 3

How to show spinner while $http post request in Ionic framework?

Published on

you can get all the details from ionic spinner here in your html template file, use ionic spinner like this. <ion-spinner icon=”spiral” ng-if=”isLoading”></ion-spinner> and in your controller file, you can make spinner work like this, $scope.isLoading = true; $http.post(url, body,config).succcess(function(res) { $scope.isLoading = false; }) .error(function(err) { $scope.isLoading = false; });

iOS 10/XCode 8 Runtime issues

Published on

getting logs such as : objc[6880]: Class PLBuildVersion is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/AssetsLibraryServices.framework/AssetsLibraryServices (0x120275910) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/PrivateFrameworks/PhotoLibraryServices.framework/PhotoLibraryServices (0x12009f210). One of the two will be used. Which one is undefined. 2016-09-14 17:18:55.812525 MyApp[6880:340725] bundleid: com.MyApps.MyApp, enable_level: 0, persist_level: 0, propagate_with_activity: 0 2016-09-14 17:18:55.813154 MyApp[6880:340725] subsystem: com.apple.siri, category: Intents, enable_level: 1, persist_level: 1, default_ttl: 0, info_ttl: 0, debug_ttl: … Continue reading iOS 10/XCode 8 Runtime issues

How to fix “Waiting for Activation” error on iOS 9 or iOS 8

Published on

Tired of iMessage waiting for activation error in iOS 9 or iOS 8.x on iPhone? Or is it just draining the last ounce of patience left in you? Despite our ‘been there done that’ experience, we’re equally skeptic about how to activate iMessage. Sometimes it works just perfectly, but sometimes it drives us crazy. There are … Continue reading How to fix “Waiting for Activation” error on iOS 9 or iOS 8

How to Setup Emergency Medical ID in iOS 9 on iPhone/iPad

Published on

Step #1.Launch the Health app from your iPhone/iPad Home Screen. Step #2. Tap on “Medical ID” at the bottom-right corner → Now tap on “CreateMedical ID” to begin adding your health details. Step #3. On the next screen, enter all your medical details including allergies, health condition, emergency contact details, and any special notes. This will … Continue reading How to Setup Emergency Medical ID in iOS 9 on iPhone/iPad