Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-02-2010, 12:25 PM   #2 (permalink)
seriessix
Registered Member
 
Join Date: May 2009
Location: Denver CO
Posts: 88
seriessix is on a distinguished road
Default

This is how I implemented the exact same thing.
Have a call button, but only if it's an iPhone
Code:
NSString *deviceType = [UIDevice currentDevice].localizedModel;
	if ([deviceType isEqualToString:@"iPhone"]) {
		//if it's an iPhone, great - add the button to the bar
	}else {
		//if you have something else you would like to put there instead....
	}
seriessix is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,529
Threads: 94,050
Posts: 402,635
Top Poster: BrianSlick (7,978)
Welcome to our newest member, wigginsray
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 09:58 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.