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 09-15-2008, 06:26 PM   #1 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Ireland
Age: 21
Posts: 472
Post Access object from different view

Hey,

I have a a button in one view and and switch in the other. I want to put
Code:
button.hidden = !solutionSlider.on;
in my settingsView class but the button object is declared in the rulesView.h file which is for a different view.

How do I work this. I really can't figure it out.

Thanks
__________________
On the iOS App Store
kieran12 is offline   Reply With Quote
Old 05-02-2009, 08:31 PM   #2 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 26
Default

Did you find a solution to this? I am trying to hide an image in one view by clicking a button in a different view. Views are in tabs.
Thanks!!
SimonCowell is offline   Reply With Quote
Old 05-02-2009, 09:56 PM   #3 (permalink)
Registered Member
 
Join Date: May 2009
Posts: 26
Default Found solution

Found solution with tab bar controller pointer.
SimonCowell is offline   Reply With Quote
Old 05-02-2009, 10:43 PM   #4 (permalink)
New Member
 
Join Date: Apr 2009
Posts: 13
Default

Quote:
Originally Posted by SimonCowell View Post
Found solution with tab bar controller pointer.

Couldn't you access the button through the @Class and creating an instance variable pointer that will point to it? Then add the accessor methods (setter & getters).

That is what you can do to access a view, so why not a button.

Would that work?
Retnuh is offline   Reply With Quote
Old 05-03-2009, 04:43 AM   #5 (permalink)
Registered Member
 
Join Date: Aug 2008
Location: Ireland
Age: 21
Posts: 472
Default

Quote:
Originally Posted by Retnuh View Post
Couldn't you access the button through the @Class and creating an instance variable pointer that will point to it? Then add the accessor methods (setter & getters).

That is what you can do to access a view, so why not a button.

Would that work?
I think that is what i did to solve it. You could also declare your object in the app delegate and access it via that.
__________________
On the iOS App Store
kieran12 is offline   Reply With Quote
Reply

Bookmarks

Tags
class, nib, noob, view, zib

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: 262
15 members and 247 guests
@sandris, ADY, Alsahir, dacapo, Dani77, Desert Diva, djohnson, HemiMG, jansan, JasonR, MarkC, prchn4christ, smethorst, tomtom100
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:57 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0