I found a great tutorial, with source code, for basic usage of the iPhone Address book:
http://iphone.zcentric.com/2008/09/19/access-the-address-book/
It was very helpful for getting started with using the address book in my code.
Comments closedI found a great tutorial, with source code, for basic usage of the iPhone Address book:
http://iphone.zcentric.com/2008/09/19/access-the-address-book/
It was very helpful for getting started with using the address book in my code.
Comments closedI recently spent about 2 hours trying to get my Distribution Provisioning Profile to show up. I followed the instructions and did everything, but still it would not show up.
Then I came across this thread: http://www.v2ex.com/2008/10/22/distribution-provisioning-profile-not-showing-up/
The first suggestion was to create a new project. I created a new project and my Distribution Provisioning profile appeared in it. Then I went back to my main project and it appeared there too. Problem solved!
Comments closedHere some sample code showing you how to open a link in Safari when clicked on in your UIWebView. The method shouldStartLoadWithRequest is a delegate method that is called when a link is clicked on. You can override the method and tell it to open in Safari.
– (BOOL)webView:(UIWebView *)webView
shouldStartLoadWithRequest:(NSURLRequest *)request
navigationType:(UIWebViewNavigationType)navigationType; {
NSURL *requestURL = [ [ request URL ] retain ];
// Check to see what protocol/scheme the requested URL is.
if ( ( [ [ requestURL scheme ] isEqualToString: @”http” ]
|| [ [ requestURL scheme ] isEqualToString: @”https” ] )
&& ( navigationType == UIWebViewNavigationTypeLinkClicked ) ) {
return ![ [ UIApplication sharedApplication ] openURL: [ requestURL autorelease ] ];
}
// Auto release
[ requestURL release ];
// If request url is something other than http or https it will open
// in UIWebView. You could also check for the other following
// protocols: tel, mailto and sms
return YES;
}
Comments closed
My first iPhone application was posted on the Apple App Store today. The KQED Daily Schedule
I’m always interested in what is currently playing on KQED, my local NPR affiliate. So I created an application that download the Radio and TV schedule and diplays it on the iPhone. It tells you the program, time, description if available and link to more information. I hope you enjoy it. You can download it for FREE from the App Store here: KQED.app
More info and screenshots can be found on the iPhone App Page
This application is not affiliated with KQED. It uses RSS feeds provided by KQED (http://www.kqed.org/community/rss/) and NPR (http://www.npr.org/rss/) to create an iPhone experience.
Comments closedI recent created a new iPhone XCode project based off of one of the samples provided by Apple. Beause of this the XCode project was called AppleSample.xcodeproj and it built an app called AppleSample.app. I wanted to rename the project and give it my own name. It’s not as easy as it sounds. Here are some instructions which are based off some instructions I found here (http://aplus.rs/cocoa/how-to-rename-project-in-xcode-3x/)
After following these steps, I was able to open the project and build it to the simulator and the device.
I had one additional problem that I came across later that required a fix. When I finially built the application for “deployment” to the App Store, I had problems signing the code. I complained that it couldn’t find the Certificate for “Scott Anguish”. I looked in the build settings and couldn’t find reference to this name. So again I opened project.pbxproj inside of MyCoolApp.xcodeproj and found 2 instances of this line:
CODE_SIGN_IDENTITY = “Scott Anguish”;
I replaced both of them with the correct code signing identity and it worked!
UPDATE: Check out this bash script which does it for you automatically:
renameXcodeProject.sh
I’ve been doing some iPhone development with XCode recently and had problems using the debugger on the device (not the simulator) and also with taking screenshots.
When installing an application on to the device, the debugger would say:
"Failed to start remote debugserver for MyApp.app"
I search around looking for a solution. In a thread somewhere, someone suggested reinstalling the SDK from scratch. I had first installed the SDK about a year ago when it came out. I then installed several updates over it. For whatever reason, that cause problems.
After reinstalling the latest SDK from Apple website, the debugger worked perfectly! And I was able to take screenshots from the device.
Comments closed