File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes iOS and the fly likes How to force reload of a subview when a button is clicked. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » iOS
Bookmark "How to force reload of a subview when a button is clicked." Watch "How to force reload of a subview when a button is clicked." New topic
Author

How to force reload of a subview when a button is clicked.

rsheyeah hussain
Greenhorn

Joined: Jan 10, 2010
Posts: 11


I want to force reload of the subview so I can display all the selected images.?




On clicking the Select All button, I would like to be able to reload the entire view and pass in a boolean value that lets me display a tick mark over all the images.

How do I achieve this.

Here is my code snippets:







Thanks for your time.

Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Well you can always send a message to set the should update view variable, which is in any UIView object. I forget the exact method call, but you can use XCode and CTRL-. to get a popup of all the methods available to call.

Or you could take a complete different approach where you use either KVO Key Value Observer pattern to the button when touched. Or you could have a UINotification sent and have all the images registered to receive that notification and then update themselves.

I have had buttons change the screens without ever having to send the message that UIView should redisplay. It happens automatically if you change the appearance of any UIView object on the UIScreen.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17260
    
    6

Yeah, looking at your code in your other post. If you just loop through your assets and call the checked method that you wrote that updates the UIView of that asset, then it should automatically update your screen.

Mark
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to force reload of a subview when a button is clicked.