iphone

Mozilla FireFox Modify Headers plugin for mobile browser testing

I learned something today, and it was painful!

I am using the Mozilla FireFox Modify Headers plugin for mobile browser testing to test a very large enterprise application and the mobile screens were not functioning as expected.

I rebuilt/re-checked out/restarted for several hours.

Debugging grails/iUI

I am building out a iphone application using grails and the iUI plugin

Objective C method with parameters

I needed to create a new method with 2 argument.  I also need to call this method.

Easier said then done.  Rather than try to add to the already volumnious documentation out there regarding objective c method name and parameters, here is what i did:

My declaration.  It's a method called "updateLatLong" that has 2 arguments (a longitude and latitude)

-(void)updateLatLong:(NSString *)latitude  longitude:(NSString *)longitude;

Can't use delegates with UIView

I followed the excellent tutorial for how to switch views found at http://www.iphonedevcentral.org/tutorials.php?page=ViewTutorial&id=52&ui...

I was able to successfully setup an application with a single controller and toggle between multiple view.   My next step is to display the longitude and latitude on a specific view.  Ran into a gotcha.

awakeFromNib

Just a FYI, I thought the awakeFroNib could be used as an event for when a panel is loaded.  I was right, but it's for when the panel is loaded at application start, not when the panel is loaded to present to the user. 

Frameworks and PCH files

I had an "iphone moment"
If you add a reference to a framework (in my case, I added CoreLocation.framework), DO NOT forget to add a reference to your PCH file.  Vice versa, don't add stuff to your PCH file and not add it to your Frameworks

iPhone and JSON installation clarification

Using the nifty JSON Objective C library, it does have lots of instructions for installation, but being the newbie that I am, I couldn't get a reference to JSON.h to compile.

 

From the documentation:

Objective C, important lesson

I am writing an iphone application that will be calling some rest services that return JSON.  Anyway, the xcode IDE was giving me lots and lots of warnings:

warning:  'MyViewController' may not respond to '-objectWithUrl:'

(Messages without a matching method signature will be assumed to return 'id' and accept '..." as arguments.)

 

PCH file rocks!

As a Java developer, I am very familiar with the concept of importing classes so that you can make references to them.  One thing that I have just learned in my journey of iphone development is the PCH file in xcode.

Basically, adding an import here will be global for all your classes in the project.  I am going to use the iphone location libraries, and had to do an import:

Part 2....

Running an iphone application example

So I downloaded the LocateMe example iphone application from apple http://developer.apple.com/iphone/library/navigation/Frameworks/CoreServ...

Wheneven I tried to run it from xcode, it was say, "Error Starting Executable  No provisioned iPhone device is connected", yeah, I know that already since I don't have an iphone connected.

As it turns out, the xcode iphone project is configured with a target.  In the example that I downloaded, it was set to an iphone.  I changed the target to my simulator, and it ran.

Syndicate content