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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 04-16-2009, 05:26 PM   #1 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 79
Default Getting a black plus button on a table view

I have a table view with the following code:

Code:
	self.navigationController.navigationBar.barStyle = UIBarStyleBlackOpaque;
	UIButton* modalViewButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
	[modalViewButton setTitle:@"+" forState:UIControlStateNormal];
	[modalViewButton setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
	[modalViewButton addTarget:self action:@selector(modalViewAction:) forControlEvents:UIControlEventTouchUpInside];
	UIBarButtonItem *modalButton = [[UIBarButtonItem alloc] initWithCustomView:modalViewButton];
	self.navigationItem.leftBarButtonItem = modalButton;
	[modalViewButton release];
However, it isn't working. I have a black bar on top for the title with a black edit button, so I just want a black square button with a white plus sign in it. Any help? I can't do it in IB.
__________________
Josh Holat Software
Check out my software at http://www.joshholat.com/iphoneapps.php
joshholat is offline   Reply With Quote
Old 04-16-2009, 06:08 PM   #2 (permalink)
New Member
 
Join Date: Feb 2009
Posts: 79
Default

Nevemind, I got it. Now how do you apply a font to a string? Something like [NSString stringWithFont:]; maybe?
__________________
Josh Holat Software
Check out my software at http://www.joshholat.com/iphoneapps.php
joshholat is offline   Reply With Quote
Reply

Bookmarks

Tags
color, text, uibutton

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 258
17 members and 241 guests
ADY, Alsahir, dacapo, Dani77, Desert Diva, djohnson, F_Bryant, Grinarn, HemiMG, jansan, linkmx, M@realobjects, macquitzon216, prchn4christ, smethorst, spiderguy84
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,882
Threads: 89,228
Posts: 380,762
Top Poster: BrianSlick (7,129)
Welcome to our newest member, jansan
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:50 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0