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 07-29-2010, 06:41 PM   #1 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 45
Default UIButton NSString CGRect

Is it possible to put a UIButton into an NSString and then use CGRectMake to define its x,y,h,w? all my attempts have ended in errors.
wardyfloyd is offline   Reply With Quote
Old 07-29-2010, 06:53 PM   #2 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

Putting a UIButton into an NSString makes no sense. What are you trying to accomplish?
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick is online now   Reply With Quote
Old 07-29-2010, 06:57 PM   #3 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 45
Default

Basically, I need, based on earlier decisions made in the program, for different buttons to be loaded up in the same places. so I have actions that load different buttons into the same nsstrings based on these decisions.
wardyfloyd is offline   Reply With Quote
Old 07-29-2010, 06:58 PM   #4 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

You don't load buttons into strings. I'm still not understanding what you are trying to accomplish.
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick is online now   Reply With Quote
Old 07-29-2010, 07:04 PM   #5 (permalink)
Registered Member
 
Join Date: Mar 2010
Posts: 45
Default

basically, instead of having lots and lots of different buttons, I want to be able to organize my buttons really simply. I thought NSString could do that. clearly i was mistaken.
wardyfloyd is offline   Reply With Quote
Old 07-29-2010, 07:07 PM   #6 (permalink)
Emphasizing Fundamentals
 
BrianSlick's Avatar
 
Join Date: Jul 2009
Location: NoVA / DC Area
Age: 36
Posts: 7,129
Default

If the different buttons are in the same place, do you actually need separate buttons? Most aspects of a button - text, image, action, etc - can be changed as needed.

I just don't get why your initial approach was NSString. What would the string even look like?
__________________
BriTer Ideas LLC - Code review, consulting, development. PM for pricing.

SlickShopper 2 | Free NSLog utility | Leave a PayPal donation.

Are you a newbie? Things you should read:
BrianSlick is online now   Reply With Quote
Reply

Bookmarks

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: 249
13 members and 236 guests
2WeeksToGo, AdamL, ADY, BrianSlick, Dani77, Dattee, headkaze, mer10, mgon987, timle8n1, Touchmint, vigu360
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,879
Threads: 89,228
Posts: 380,745
Top Poster: BrianSlick (7,129)
Welcome to our newest member, mgon987
Powered by vBadvanced CMPS v3.1.0

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