iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

iOS Framework issue: Class is implemented in both

I’m working on an iOS framework project which is using a third-party framework classes so I added third-party framework under Linked frameworks and libraries section. When I add my custom framework in my iOS app project, I’m getting this warning for each class objc[3139]: Class ‘class_name’ is implemented in both /private/var/containers/Bundle/Application/C131AF0F-7CF8-4360-8716-3E8A595169D6/’app_name’.app/Frameworks/’framework_name’.framework/’framework_name’ and /var/containers/Bundle/Application/C131AF0F-7CF8-4360-8716-3E8A595169D6/’app_name’.app/’app_name’. One of […]

iPhone / iPad user profile tracking

My iphone app downloads user specific data from our web server. How can I identify a unique user/device? cookie? ip address? or do I need them to register first? What are some issues I need to be aware of? best practices?

dyld: Symbol not found: ___NSDictionary0__ when using google ServiceGenerator binary with discovery docs in XCode 7 & iOS target 9.0

I’m trying to generate client API code from Google backend using Google serviceGenerator with discovery document as input. Following is the exact command : /Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator ./userRecordApi-v1-rpc.discovery –outputDir ~/API I however, see the following error dyld: Symbol not found: ___NSDictionary0__ Referenced from: /Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator (which was built for Mac OS X 10.11) Expected in: /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation in /Users/raja/Library/Developer/Xcode/DerivedData/ServiceGenerator-dycdiotwolfqnaelznaucewpppjr/Build/Products/Debug/ServiceGenerator […]

Will this Objective-C, nested NSArray cause a memory leak on iPhone?

NSArray *tLines = [[NSArray alloc] initWithObjects: [[NSArray alloc] initWithObjects:@”Matt”, @”David”, nil], [[NSArray alloc] initWithObjects:@”Bob”, @”Ken”, nil], nil]; self.lines = tLines; [tLines release]; I’m allocing NSArrays within an NSArray, will the nested arrays get released when I call [lines release];?

APNS notification received but not display

I am trying to implement pushnotification. I get pushed message when app is running state. – (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo { NSLog(@”\n\n\n apns==%@\n\n\n”,userInfo); } my problem is when I pushed message when app is not running means badge count only show on the app icon. It will not display the alert like close and view […]

Ray-Triangle intersection picking not working

I’ve been working on this for the past several days and have been stuck. I need to be able to touch the screen and return the x,y,z coordinates of the point on my model closest to the near plane that intersects the ray generated at the pick point. I think part of my problem is […]

How do I set my nib File's Owner to an object in another nib file?

I’m new to Cocoa and am having trouble splitting my nib file into multiple nib files. My MainMenu.nib contains a Tracker Controller object, which is a subclass of NSObject. It has an outlet to a Show Tracker menu item in my main menu. My TrackerWindow.nib has the File’s Owner class set to TrackerController, and has […]

Incompatible pointer type sending 'Class' to parameter of type 'NSDate *'

I have an NSDate category with following method @implementation NSDate (DateUtility) +(NSString *)dateTimeStringForDB { NSDateFormatter *dateFormatForDB = [[NSDateFormatter alloc] init]; [dateFormatForDB setDateFormat:@”yyyy-MM-dd HH:mm:ss”]; NSString *aDateStr= [dateFormatForDB stringFromDate:self]; [dateFormatForDB release]; return aDateStr; } @end with this definition I receive a warning . Incompatible pointer type sending ‘Class’ to parameter of type ‘NSDate *’ However type casting […]

Why does the first run of “XCTestCase -measureBlock:” takes so much time?

I’m using Xcode 7. iPhone 5s simulator (iOS 9.0). I’m trying to use XCTestCase -measureBlock: to measure time spent on some of my functions. This runs the code inside the block 10 times and report the results how long each run takes, the average, STDEV, etc. It turns out that the time of first run […]

MPMoviePlayer sound working in Simulators and ipad device, but not Working in iPhone Device

I have a problem with MPMoviePlayerController, i.e. I am playing the live stream url in (m3u8 format) MPMoviePlayer like below: player = [[MPMoviePlayerController alloc] initWithContentURL:audioUrl]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loadStateDidChange:) name:MPMoviePlayerLoadStateDidChangeNotification object:player]; if ([player respondsToSelector:@selector(loadState)]) { // Set movie player layout [player setMovieSourceType:MPMovieSourceTypeStreaming]; [player setControlStyle:MPMovieControlModeVolumeOnly]; [player setFullscreen:YES]; [player prepareToPlay]; [player play]; } } It is working […]