Advertise Books Events Forum News Social Networking Support Us

sdkIQ for iPhone
($4.99)

Shape Up
($0.99)

Your First iPhone App
($1.99)

iVidCam Free
(free)

Kid Art
($0.99)

iPUBQUIZ
(£1.19)

ArtStudio
($3.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 03-26-2009, 11:00 AM   #7 (permalink)
LeopardDevX
iPhone Developer
 
Join Date: Mar 2009
Posts: 220
Arrow so..

Quote:
Originally Posted by smasher View Post
They should keep the last position they had - the center and frame are both properties of the UIView object you're saving. I haven't tried this - it's just an idea - so back up your project before starting this.

Code:
//safeKeeping should be an NSMutableArray

//when you want to save the views
[safeKeeping addObject: myBlock];
[myBlock removeFromSuperview];

//loop through the views you want to put back
for (UIView *myBlock in safeKeeping){
     [topView addSubview: myBlock];
}
//clean out the array
[safeKeeping removeAllObjects];


The for (UIView *myBlock in safeKeeping).....

method isnt working...

im getting a warning on myBlock.....

__________________
Thank You.
LeopardDevX is offline   Reply With Quote
 
Enter the iPhone App Challenge!  Win $500!
» Advertisements
» Stats
Members: 24,208
Threads: 38,991
Posts: 171,023
Top Poster: smasher (2,569)
Welcome to our newest member, JDBurgie
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:08 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.