All posts by admin

WordPress Site stuck in maintenance mode.

I was updating a plugin on a WordPress site I maintain and the process just stopped working. The site was stuck in Maintenance mode. To get out of maintenance mode I had to delete the file ‘. maintenance’ from the root of the site. Once I had done this the site instantly came back up.

iOS – Check if wifi is being used

In an app I was making recently I wanted to check if the user was using a wifi connection. I used the method below to check and just checked whether it returned true or false. – (BOOL)networkCheck{ Reachability *currentReachability = [[Reachability reachabilityForInternetConnection] retain]; NetworkStatus networkStatus = [currentReachability currentReachabilityStatus]; [currentReachability release]; switch (networkStatus) { case NotReachable: […]

ShareKit 0.2.1 Twitter not working

I added ShareKit to my project and got the following error: Twitter Send Status Error: {"error":"Could not authenticate with OAuth.","request":"\/1\/statuses\/update.json"}Twitter Send Status Error: {"error":"Could not authenticate with OAuth.","request":"\/1\/statuses\/update.json"} The following is how I fixed it: Around line 54 you will see the following code: self.authorizeURL = [NSURL URLWithString:@"https://api.twitter.com/oauth/authorize"]; self.requestURL = [NSURL URLWithString:@"https://api.twitter.com/oauth/request_token"]; self.accessURL = [NSURL […]

NGTabBarController for iOS

A custom TabBarController which can be positioned on the bottom, top, left or top. Utilizes iOS 5 Containment API if possible, but works on iOS 4 too. The TabBar is fully customizable with a tintColor or background image as well as the possibility to show/hide the item highlight and the possibility to change the text […]

iOS Launch Images

When creating a new universal IOS app you need to create a minimum of 6 launch images to support the iPhone and iPad (both including their retina displays). For the iPhone you have it easy, only 2 are required. Default.png – 320 x 480 Default@2x.png – 640 x 960  For the iPad there are a […]