Blog Archives

Volvo On Call (VOC) API

Hi!

This subject is something that really interests me, its an awesome technology that has many prospects for the future. So, Of course I would like to know how it works.

Before you continue reading, I would like you to know that the information written below is for education purpose only. Using the things explained below (for what ever reason) might (most likely) be breaking the Swedish law (since the volvo on call server is located in Göteborg (Gothenburg)). Contacting and use data from the Volvo on call API might be seen as data trespassing, which Sweden has a law against (Describes as “Dataintrång” defined as crime in 4 chapter 9 § of the crime code (brottsbalken)).

Posted in Charles, Development, Hacking, iPhone, Mac, Objective-c, Tutorials, VOC, Volvo, Web, Wireshark Tagged with: , , , , , , , , , , , , , , ,

Dismiss UIPopoverController from subview

Closing an UIPopoverController from the subview, wether it is a UINavigationController any other type of controller can be a little bit of an hassle. I had this problem today and figured it out quickly. I thought of sharing this solution here.

The solution itself is quite simple. The ViewController creating the UIPopoverController is being reused to close it as well. This means that the UIPopoverController needs to be an accessible variable throughout that class.

So, how do we close it? well, this is how:

Posted in iPhone, Objective-c, Tutorials, XCode Tagged with: , , , , , ,

Writing the XCode Cookbook

Hi!
As some of you might know, I am writing an XCode Cookbook. This is a book which will contain only tutorials on how to do different things within XCode. So, no tutorials like “Adding Facebook to my iPhone app”, but more in the style like “Adding custom location to the iOS Simulator” or “Managing multiple targets within my project”.

I have a list of about 50-60 tutorials, but I need more. I need about 40 tutorials (3-4 chapters) more, so I am looking for tips; and since you, my readers, come here for such things, who better to ask but YOU!

Posted in Apple, Cocoa Touch, Development, Mac, Objective-c, OSX, XCode Tagged with: , , , , , , , ,

iOS 4 & iOS 5 tutorial: UIAlertView with link to WIFI or Settings app using Reachability and XCode 4.2

Hi!

This tutorial is about how to make your apps UX just a little bit better. Have you ever noticed the message in google maps stating that if you activate Wifi you would get a better positioning? Or that when you want to send a text message and your phone is on flight mode, that you get the message to de-activate flight mode in order to send a text?

Well, it is actually really simple. These are just links that are opened. So, in this tutorial I will show you how to do this using e.g. Reachability.

Posted in Apple, Development, Free stuff, iOS, iPhone, Mac, Objective-c, Tutorials, XCode Tagged with: , , , , , , , , , ,

Getting the area code from a Swedish phone number using PHP

Hi!

Currently I am working on a little project where I need to fetch the area code form a phone number for Sweden. This, however, is not one of my strongest sides… I really hate Regex.
Since this is an iOS project, I would like some objective-C code… so I jumped over to one of the greatest sites I know and made a post: http://stackoverflow.com/questions/8188964/getting-an-areacode-from-the-phone-number

I got a great answer, which I approved, and made a test script in PHP. This is me sharing this test script. If you can use it, have fun with it but, Do not forget to Like the post and Flattr it 😉

Posted in Development, Free stuff, iPhone, PHP, Web Tagged with: , , , , , ,

Categories