Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 28, 2009, 02:07 AM   #1
iphonedevelop18
macrumors member
 
Join Date: Feb 2009
Setting a Buttons title

Sorry for the noob question but I cannot figure out how to set a Buttons text
I tried using "button.text" and "button.title."

Thanks
iphonedevelop18 is offline   0 Reply With Quote
Old Mar 28, 2009, 08:39 AM   #2
dejo
Demi-God (Moderator)
 
dejo's Avatar
 
Join Date: Sep 2004
Location: Colorado
Did you try looking at the class reference for UIButton? Especially around the setTitle instance methods?
__________________
My iOS Apps: a.k.a., DreamStream
I support the MacRumors Blood Drive!
dejo is online now   0 Reply With Quote
Old Mar 28, 2009, 06:53 PM   #3
iphonedevelop18
Thread Starter
macrumors member
 
Join Date: Feb 2009
yes, i made sure to look at those thoroughly before posting and I didnt see it.
iphonedevelop18 is offline   0 Reply With Quote
Old Mar 28, 2009, 07:55 PM   #4
mccannmarc
macrumors 6502
 
Join Date: Aug 2008
Location: Manchester, UK
Send a message via MSN to mccannmarc
Quote:
Originally Posted by iphonedevelop18 View Post
yes, i made sure to look at those thoroughly before posting and I didnt see it.
so you didn't see setTitle: forState:? hmmm you obviously weren't looking very hard. Anyway its used like [<nameOfButton> setTitle:@"Whatever" forState:UIControlStateNormal]; if you want to set the title of the button in general
__________________
DudeWare site:- http://www.dude-ware.co.uk DudeWare forum:- http://www.forum.dude-ware.co.uk

Last edited by mccannmarc; Mar 28, 2009 at 08:01 PM.
mccannmarc is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
applescript studio, set button title issue.... butteryak Mac Programming 0 May 14, 2011 02:52 PM
Tabbar button title displays only after the tab button is clicked kingthong iPhone/iPad Programming 2 Nov 18, 2010 08:11 AM
How do I change a buttons title when it is clicked? glossywhite Mac Programming 5 Sep 2, 2009 06:18 AM
how to change button title using object id in IB? Sergio10 iPhone/iPad Programming 11 Apr 27, 2009 09:51 AM
Back button title sujithkrishnan iPhone/iPad Programming 5 Mar 4, 2009 02:23 PM


All times are GMT -5. The time now is 12:25 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC