Breaking News
Home / iOS (page 4)

iOS

How to remove all files of a particular type from a directory in iOS?

Lets say you want to remove(delete) all the files of a particular extension say PNG from the Documents folder of the app. We can use the following code snippet. NSString *fileExt = @"png"; // get the file manager NSFileManager *fmanager = [NSFileManager defaultManager]; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); // …

Read More »

Exception :switch case in protective scope (Objective C)

Exception :switch case in protective scope Code with Issue   case kTopicInteractiveScene:             TopicInteractiveBackgroundLayer *l = [[TopicInteractiveBackgroundLayeralloc] init];             ModelManager *mm = [ModelManagersharedModelManger];             l.info = mm.appInfo.topics[[AppConfigManager  getInstance].currentTopic];             sceneToRun = [l node];             break; <!

Read More »

How to rename an XCode project?

Answer It is very common to start another project from an existing project instead of re-creating a new project from scratch. Or at times you decide to change the name of project as you found a better name for you app. In earlier version of XCode 3.x it was not …

Read More »

How can we not support iPhone5 4inch screen size?

With the launch of iPhone5( 4 inch screen), most likely developers will be supporting both 3.5 inch and 4.0 inch screen for a while till most of the users have an 4 inch screen. When you create a project in XCode 4.5 and above, it creates the project with iPhone5 …

Read More »
Advertisment ad adsense adlogger