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 04-16-2009, 04:26 PM   #1 (permalink)
joshholat
New Member
 
Join Date: Feb 2009
Posts: 79
joshholat is on a distinguished road
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
 

» Advertisements
» Online Users: 436
15 members and 421 guests
7twenty7, brainspoon, Creativ, dre, Hamood, hzwegjxg, kellyschoemaker, LegionMD, mraalex, PavelMik, QuantumDoja, Robemtims, ryantcb, smithdale87, umarmara
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,617
Threads: 94,086
Posts: 402,795
Top Poster: BrianSlick (7,990)
Welcome to our newest member, kellyschoemaker
Powered by vBadvanced CMPS v3.1.0

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