Profile Photo
I have a tableview controller which shows custom cells in a table view. However, the first cell appears under navigation bar. I tried this solution but it didn't work.   Any help?
in Cocoa Touch
Profile Photo
I wrote the following code to do so but I get a runtime exception saying   this class is not key value coding-compliant for the key date.  Here is my code...   NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"date" ascending:TRUE];… (Show more)
in Objective-C
Profile Photo
I get the error when trying to save the context... This NSPersistentStoreCoordinator has no persistent stores (unknown).  It cannot perform a save operation.   here is my code...   //… (Show more)
in Core Data
Profile Photo
The documentation - app extension programming guide, says health kot and event kit are unavailable to today widgets in iOS 8. What about above iOS 8?   I have seen caledar apps with today widgets. It means event kit is being used.   Neerav
in HealthKit
Profile Photo
macOS 10.15.3 xcode 11.3.1 device iphone 6 iOS 12.4.5 development target iOS 12   problem - app shows launch screen and then shows a black screen without any UI. the app works fine on simulator ios 13 iphone 8. the app worked fine on the device until i accidentally deleted scene delegate, which I have added since. there are no error… (Show more)
in Cocoa Touch
Profile Photo
Here are the steps I took to implement the unwind segue.   coded an unwind segue method in VC1. in storyboards, dragged vc2 to vc2 exit button and selected unwind method. unwind method prints a dictionary if it has received. i want to go back to vc1 and vc1 should have some data that vc2 collected. so i expect unwind segue to do it.   but… (Show more)
in Cocoa Touch
Profile Photo
I have a core data database which has an entity which doesn't store the date it belongs to. each day has one record. how can i query the database with reference to data.   for example, fetch results for a date range.   Neerav
in Core Data
Profile Photo
my call makes a call to HKSampleQuery method initWithSampleType that queries information from healthkit store. I want the main thread to wait until the the query is over so that the block handler updates the global variables in the custom class.   I understand concurrency but haven't used it enough. Please help me with this one.   my code goes… (Show more)
in Objective-C
Profile Photo
How can I store step goals in healthkit store? There is not type identifiers for the same. Can data aside from the mentioned in type identifier be saved in healthkit store?
in HealthKit
Profile Photo
I read the article here... https://developer.apple.com/documentation/swift/imported_c_and_objective-c_apis/importing_swift_into_objective-c and this is what I did.   Created a header file for swift file. added @class SwiftFile.h #import MyAppTargetName-Swift.h in the objc file from where I want to reference my swift code. Now in my swift file… (Show more)
in Objective-C
Profile Photo
Hi,   My app reads the steps taken my a user and the corresponding energy burmed.   I know I can get the steps taken from the health kit but can I also get the energy bunred correspondingly or do i need to calculate it my self?   Without that information, here is the stratgey I have decided. Please help me...   Take necessary information from… (Show more)
in HealthKit
Load more items