Archive for November, 2008
It has been a while since my last tutorial. Â For that I am sorry. Â My wife is 9 months pregnant and about ready to pop. Â This being the case, she takes up most of my free time… I have spent a little of my extra time developing a new iphone apps site called freshapps.com.
The site uses WordPress as its main engine and aims to be a “Digg-like” site for iphone apps. It offers a new fun …
I’m sure many of you are aware that Stanford is offering an iPhone development class this semester. Â On my journeys through the interwebs, I discovered a link to the site where the lectures for this class were posted (via delicious). Â
So for those of you who already didn’t know this, here is a link to the lecture slides (with sample code).
http://www.stanford.edu/class/cs193p/cgi-bin/index.php
I hope you find the examples and instruction here very useful. Have a great day and happy …
It’s times like this, that I miss ruby.
I’m checking a url to see if it has a substring. It would be so easy if this was ruby:
absolute_url.match(/my regex/).any?
In Objective C, you have to use rangeOfString which returns a range. If I were to run this on the string “the quick brown fox” with an argument of “brown” it would return {10,14}. If it’s not found, it would return {NSNotFound, 0}. Let’s use that to check to …
This tutorial was contributed by Dave (AKA Clarke76) on the Forums.
WebSite: http://viium.com
-Main project on site is eDuo. A .Net app that connects to OWA Exchange and forwards to IMAP account. Free program for those who can’t use Active Sync
Â
Important Links:
[WebService] http://viium.com/WebService/HelloWorld.asmx
http://developer.apple.com/documentation/Cocoa/Conceptual/URLLoadingSystem/Tasks/UsingNSURLConnection.html
http://developer.apple.com/documentation/Cocoa/Conceptual/XMLParsing/XMLParsing.html
http://www.w3schools.com/soap/default.asp
-After creating our XML data / SOAPÂ request, we create a URLRequest. We add HTTP Header values, those values you read from the WebService.
-We set the HTTP Method to POST
-We set out HTTP Body to …
Problem:
You use the applicationDidFinishLaunching method to kick off your application. This event fires automatically on your delegate whenever your app launches.
If your app launches from a special url schema (tel://, http://, mailto://), then another event is fired:
handleOpenUrl
As you might have noticed in the LaunchMe sample project that ships with Xcode, these two methods will most likely conflict.
Solution:
Move the functionality from applicationDidFinishLaunching and put it in another method, like postLaunch. Then add a member variable to the application delegate …
The Problem:
Recently, after upgrading an iPhone to the current iPhone development firmware Xcode was unable to detect the device. I first noticed this when trying to build directly to the device:
“no provisioned iphone os device connected”. Needless to say, the device was in fact connected.
After that, I opened the organizer and saw:
“unable to locate a suitable developer disk image…”.
The Solution:
Downloading and installing the current Xcode SDK. Wouldn’t it be helpful if the error message could tell you …
Building for the simulator is easy. Building for the device, however, can be troublesome, especially when using version control to share your code with other developers.
Often times, the project.pbxproj file ends up with settings that disable Xcode from building your application for the device. Here is a common and frustrating error:
CodeSign error: a valid provisioning profile is required for product type ‘Application’ in SDK ‘Device – iPhone OS 2.1′
That is not a helpful error message. In …
Workout of the Day