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

Getting iOS system uptime, that doesn't pause when asleep

I’m looking for a way to get an absolute, always-incrementing system uptime on iOS. It should return the time since the device was last rebooted, and not be affected by changes to the system date. All the methods I can find either pause when the device is asleep (CACurrentMediaTime, [NSProcessInfo systemUptime], mach_absolute_time) or are changed […]

How to make a push segue when a UITableViewCell is selected

I have a list of effects in a table view. I have created a top right bar button which does a push segue to another view controller which helps create a new effect. Now I want to add push segues to the table view cells so that the effects values maybe loaded on the add […]

RSA implementations in Objective C

I am working on a simple app in objective-C that uses RSA Algorithm. I want to use it on Server/Client Communications. I need help in RSA Algorithm Implementation in iOS/iPhone. I have knowledge of encryption and decryption. I want an opensource library or code to add into my project. I have to go though CommonCryptor.h.

Make movie file with picture Array and song file, using AVAsset

I’m trying to make movie file using a picture array and an audio file. To make movie with a picture array i used the big post by zoul here. All is perfect, I have my movie with my picture. However when I try to add some audio tracks I have lot of problems. To understand […]

Looping a video with AVFoundation AVPlayer?

Is there a relatively easy way of looping a video in AVFoundation? I’ve created my AVPlayer and AVPlayerLayer like so: avPlayer = [[AVPlayer playerWithURL:videoUrl] retain]; avPlayerLayer = [[AVPlayerLayer playerLayerWithPlayer:avPlayer] retain]; avPlayerLayer.frame = contentView.layer.bounds; [contentView.layer addSublayer: avPlayerLayer]; and then I play my video with: [avPlayer play]; The video plays fine but stops at the end. With […]

Subclass UIApplication with Swift

In Objective C it was simple: it was sufficient to update the main.m file and change the UIApplicationMain() parameters return UIApplicationMain(argc, argv, NSStringFromClass([CustomUIApplication class]), NSStringFromClass([AppDelegate class])); But in swift there is no main.m file, since the guide says “Code written at global scope is used as the entry point for the program, so you don’t […]

Missing return UITableViewCell

I am sure this question have been asked before but I can’t find an answer that solves my problem with nested if-else and switch-case logic. I have a UITableView with two sections, each sections has two custom cells. That is it it. 4 cells. But no matter what I do I get “Missing return in […]

Missing certificates and keys in the keychain while using Jenkins/Hudson as Continuous Integration for iOS and Mac development

I’m trying to improve Hudson CI for iOS and start Hudson as soon as system starts up. To do this I’m using the following launchd script: <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>Label</key> <string>Hudson CI</string> <key>ProgramArguments</key> <array> <string>/usr/bin/java</string> <string>-jar</string> <string>/Users/user/Hudson/hudson.war</string> </array> <key>RunAtLoad</key> <true/> <key>UserName</key> <string>user</string> </dict> </plist> This […]

Embedding YouTube videos on

I’ve embedded a video from YouTube via a snippet I’ve found on the Internet, here is the code that I’ve used: @interface FirstViewController (Private) – (void)embedYouTube:(NSString *)urlString frame:(CGRect)frame; @end @implementation FirstViewController – (void)viewDidLoad { [super viewDidLoad]; [self embedYouTube:@”http://www.youtube.com/watch?v=l3Iwh5hqbyE” frame:CGRectMake(20, 20, 100, 100)]; } – (void)embedYouTube:(NSString *)urlString frame:(CGRect)frame { NSString *embedHTML = @”\ <html><head>\ <style type=\”text/css\”>\ […]

Using SSL in an iPhone App – Export Compliance

I’m looking at creating an iPhone app that will communicate with a REST Web service. Because some user-sensitive data (name, address, age, etc) will be transmitted, I’m looking at securing the connections with SSL. However, on my previous escapades into App Store submission, I saw that the first question I get asked is “Does your […]