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

UIAlertView with a user supplied context and

I have looked over some ideas for how to supply a context to a UIAlertView. The common answers are save it in a dictionary or subclass UIAlertView. I don’t like the idea of saving the context in a dictionary, it’s the wrong place for the data. Subclassing UIAlertView is not supported by Apple, so by […]

How to start next a Song or recognized that a song is finished while playing with AVPlayer?

How can I start next song immediately with AVPlayer? I have collections of song selected from iPod Library in MPMediaItemCollection. Now how can i use AVPlayer for lists of songs to be played one by one??

Adjust Mac display brightness Objective-C?

Is there a way to adjust the Mac’s display brightness in Objective-C? I have sensitive eyes, and sometimes the display seems like it could be darker. Combine that with Jeff’s blog post about geeks and darkness, and it can get pretty annoying. I think it would stand to reason that if the display could be […]

How to show ProgressBar With AFNetworking AFHTTPRequestOperationManager

I am trying to show the Progress Bar as I download a JSON from a url. The JSON is downloading correctly but I am not sure how to show the Progress Bar. I have tried using UIProgressView but it does not display on the screen. Any suggestions would be appreciated. CGFloat width = [UIScreen mainScreen].bounds.size.width; […]

Sprite Kit collisions for multiple collisions

I have looked, and have found answers for single collisions, but I am looking for a way to detect more than one type of collision. I am making a game where there are 3 collisions I would like. The user plane colliding with enemy bullets, the user’s bullet colliding with the enemy plane (which i […]

Is there way to get metadata of the image file in iOS?

Possible Duplicate: Access metadata (exif tags) of image taken by UIImagePickerController – iOS/iPhone How to get image metadata in ios I have some image file in the iOS application local folder. How can i get it’s metadata?

Another Speed Boost Possible?

Thanks to the respondents on this question (This loop is very slow, I think because I create a lot of intermediate strings. How can I speed it up?) I was able to speed up my code many orders of magnitude. I think I can probably do a bit better though. Is it possible to avoid […]

Xcode — delete images are still getting built when building app

I am trying to clean up my app before I submit it for apple approval, but I have an issue. I have delete some unwanted background images but the app seems to think they are still there. I have delete the app completely from the phone but when I build it is still there. The […]

iOS 7 m4a to mp3 encoding – is it possible?

I’ve searched through all the internet and didn’t find a clear answer on my question – How do you record an m4a file (because as this answer states iOS doesn’t support mp3 recording) and later convert it to mp3? Recording an audio file seemed to be a piece of cake, but then the nightmare began. […]

Access files in “private Documents” folder transferred with iTunes

Currently I’m trying to access the files that are transferred using the new iOS feature introduced with 3.2. – (NSString *)getPrivateDocsDir { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSLibraryDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [paths objectAtIndex:0]; documentsDirectory = [documentsDirectory stringByAppendingPathComponent:@”Private Documents”]; NSError *error; [[NSFileManager defaultManager] createDirectoryAtPath:documentsDirectory withIntermediateDirectories:YES attributes:nil error:&error]; return documentsDirectory; } // and then in a method […]