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)).
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:
In the class opening the popover, this is my code:
A while ago, a colleague introduced me to YUI Compressor. I was really amazed. I knew there were such kind of tools/applications out there, but never really bothered to find our which ones and how they work. So, I though, being a Mac user, that this should work on my mac as well… well… yes and no. Its not so easy getting it up and running, and I want to be able to run an ANT target in my PHP project to get this working.
So, I had some digging around to do, and ended up with my own little guide on how to get it working.
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!
Since the release of XCode 4.2 I have noticed a certain error poping up after buidling reguarly. The error incidcates that the iOS Simulator already has a process running or is hung. The anoying part is that even if you quit XCode and iOS Simulator, the problem wont go away.
This is the error:
Couldn’t register com.myApp.debug with the bootstrap server. Error: unknown error code. This generally means that another instance of this process was already running or is hung in the debugger.Program received signal: “SIGABRT”.