iPhone

Proper way to determin iPhone vs. iTouch

I keep seeing people write way too much code to get this simple little detail, and thought id offer the (correct) method i use to do it.
 
 

ButtonBar LayerKit UITransitionView Demo

here is a sample class you can load up into your main class with this
( im loading it into mainView but you can use whatever )


buttonBarView = [[ButtonBarView alloc] initWithFrame:CGRectMake(0,0,320,460)];

Return iPhone owners name

You can use NSHost.
you can return name(string) or names(array)

so if you return the array of names, what mine does is return 3 values.
1. "iPhone"
2. "Aaron Alexander's iPhone"
3. "localhost"

you prob want #2, which seems to be what the name is in itunes for your iphone.

Syndicate content