Map directions from iOS app to Maps app

September 15, 2010

Lets say you have a source coordinate and a destination coordinate inside your iOS application and you want to launch the pair and have directions load in the built in maps application on the device.

Assuming the device has GPS, you can get the user location lat & long using the syntax, *.userLocation.coordinate.latitude and *.userLocation.coordinate.longitude are dot properties in Objective-C, and they can be used as the source lat & long as seen below. Replace the * with the name of the mapView object in your code. You also need the lat & long of where you are going. Then, just build an NSString with the URL in it, and use the sharedApplication method of UIApplication to launch your URL in the built in map application.


NSString *mapURL = [NSString stringWithFormat: @"http://maps.google.com/maps?saddr=%f,%f&daddr=%f,%f", mapView.userLocation.coordinate.latitude, mapView.userLocation.coordinate.longitude, destinationLatitude, destinationLongitude];


[[UIApplication sharedApplication] openURL:[NSURL URLWithString:mapURL]];

Thanks for checking out my article, and feel free to stop by and check out my mobile device applications http://www.pruetsoftware.com/.


More iPads in the Enterprise

September 6, 2010

Even though SAP is not as heavily used in the US, it is my understanding it is widely used on a global level. After reading this short article, I can see this potentially driving sales of the iPad in the enterprise on a global level as well.

http://www.tuaw.com/2010/09/06/sap-deploying-1000-ipads-to-employees-more-on-the-way/

Thanks for checking out my article, and feel free to stop by and check out my mobile device applications http://www.pruetsoftware.com/.


Apple iOS 4.1 on iPhone 3G Speed Test

September 6, 2010

There is a video posted over on Lifehacker showing someone testing the new iOS 4.1 GM on an iPhone 3G. Since I still use an iPhone 3G, I was particularly interested in this video and found the speed enhancements pretty noticeable, as compared to my iPhone.

Check out the video for yourself:
http://lifehacker.com/5628991/iphone-3g-speed-test-ios-40-versus-ios-41

Thanks for checking out my article, and feel free to stop by and check out my mobile device applications http://www.pruetsoftware.com/.


Wrong Cable Dummy

September 6, 2010

So, I was messing around with some Apple iOS development the other day, like I do on a daily basis. I plugged my iPhone into my Mac and went to compile an app and test it on my iPhone. When I did, I got an error in the bottom left corner of Xcode. It stated it failed to upload the application. Which was odd, because the app was on my iPhone. I continued to test the app and make revisions and test some more, and I kept getting the error. I then noticed the cable I was using was a Belkin version of the standard iPhone dock cable. I grabbed the Apple one, and I have several, and test that. And, what do you know, the error went away.

So, the takeaway from this, if you are an Apple iOS developer, use only the Apple made dock cable.

Thanks for checking out my article, and feel free to stop by and check out my mobile device applications http://www.pruetsoftware.com/.


Good Resources for New iPhone Developers

August 20, 2010

I am not new to iOS development, and I do not consider myself an expert either. I own and have read more books than I wish to mention. I am going to offer my opinion on what I think if a good set of resources for developers new to the iOS platform.

First off, the first place to start, and the place with the most helpful and largest volume of support content is Apple’s developer site. Apple has some great books (aka PDFs) to read, a large amount of support reference documents and sample code. Several of the must reads are their Obj-C guide, the Human Interface Guidelines, a few best practices PDFs and if you are a registered developer make sure to read the PLA (or Programmer License Agreement).
http://developer.apple.com/iphone/index.action

Also, if you log in to the Apple Developer site and you are a registered developer, the 2010 WWDC are very good. There are over 100 videos and they are on iTunesU and you can download them for free, unlike the 2009 WWDC videos that you need to pay for.
http://developer.apple.com/videos/

Apress has a great series of iPhone development books that came out prior to iOS 4. I think these are excellent books and they have a great support site and developer forum to back the book up. These Apress books do an excellent job of stepping you through building an iOS application, and covering a large amount of controls and topics.
Beginning iPhone 3 Development – http://www.apress.com/book/view/9781430224594
More iPhone 3 Development – http://www.apress.com/book/view/143022505X

One of the most well known writers of Mac OS X development books has written an excellent iPhone book as well. One of the great aspects of this book is the writer covers the MVC setup for most of the applications covered in the book. The writer also approaches the chapters from a viewpoint to teach you the language and help you learn while you build an app, rather than from walking you through the steps to build an app like I feel the Apress books do. Not that the Apress books are bad, as I find them to be a great resource. The Apress books are also good if you are working on an app and want a quick walk through to add functionality for certain controls. But, the Aaron Hillegass iPhone Development book is also a great book to read and learn from.
iPhone Development – http://bignerdranch.com/book/iphone_programming_the_big_nerd_ranch_guide

If you want to learn the nuts and bolts of the Objective-C language, I feel Stephen G. Kochan has one of the best books out there. Just make sure you get the Objective-C 2.0 2Ed version, as there are others.
Programming in Objective-C 2.0 – Amazon

If you want a great book that covers several areas of iOS development outside of the coding, such as Xcode, memory management utilities, source control, unit testing and some of Xcode’s other support tools, this is a great book.
Learn Xcode Tools for Mac OS X and iPhone Development – http://www.apress.com/book/view/9781430272212

Another great resource is Stanford University’s iPhone Dev Class which is available on iTunesU.
http://www.stanford.edu/class/cs193p/cgi-bin/drupal/downloads-2010-winter

There is also a Google Group for Auditors or other non students to check out for the Stanford Univ iPhone Dev Class.
http://groups.google.com/group/iphone-appdev-auditors/

Thanks for checking out my article, and feel free to stop by and check out my mobile device applications http://www.pruetsoftware.com/.


Apple pulls antenna test page

August 1, 2010

I guess due to all the bad PR about the page, Apple has removed the page they put up with all the videos showing how various phone reacted to being held specific ways.

http://www.androidcentral.com/apple-gives-trying-make-other-phones-look-bad-pulls-testing-page

http://www.macrumors.com/2010/08/01/apple-removes-competitor-antenna-performance-comparisons-from-site/

Thanks for checking out my article, and feel free to stop by and check out my mobile device applications http://www.pruetsoftware.com/.


Apple IIe and iPad

July 30, 2010

I came across this on Panic’s blog, after looking at their application Coda. Take a look at this video, brings back the memories of the Apple’s I used in middle school and high school. PS – I know this is from a few weeks ago, but I finally watched the video today.

http://www.panic.com/blog/2010/05/an-apple-e-an-ipad-and-jed/

Thanks for checking out my article, and feel free to stop by and check out my mobile device applications http://www.pruetsoftware.com/.


Delegation, an important concept in iOS development

July 30, 2010

UPDATE: See my other post for some more up to date links on Protocols and Delegation in iOS.

https://daytonpruet.com/2012/04/25/great-blog-posts-on-protocols-and-delegation/

Original Post:
One thing that had me confused when I was first learning iOS application development was how delegates worked, how you used and coded them. After several iOS application development books and friends explaining it, I have the concept down, at least I think I do. It is an important concept to know, especially with the iOS platform. Apple has a short article with an example of how delegating works, with links to other reference to read more.


http://developer.apple.com/iphone/library/documentation/General/Conceptual/DevPedia-CocoaCore/Delegation.html#//apple_ref/doc/uid/TP40008195-CH14

Thanks for checking out my article, and feel free to stop by and check out my mobile device applications http://www.pruetsoftware.com/.


Core Data Tutorial

July 29, 2010

If you are looking for a great Core Data tutorial for iOS application development, you should check out the stuff Apple has setup. They have a step-by-step walk through, with links to other resources for related reading. If you are interested in learning Core Data, this is a great resource, although it is not an entry level concept in iOS development.

http://developer.apple.com/iphone/library/documentation/DataManagement/Conceptual/iPhoneCoreData01/Introduction/Introduction.html

Thanks for checking out my article, and feel free to stop by and check out my mobile device applications http://www.pruetsoftware.com/.


Apple’s 2010 WWDC Session Videos

July 29, 2010

If you have not already, you should start downloading the session videos from 2010 WWDC. There are over a 100 of them, and they are now free is you are a registered Apple developer.

http://developer.apple.com/videos/

Thanks for checking out my article, and feel free to stop by and check out my mobile device applications http://www.pruetsoftware.com/.