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

View Single Post
Old 03-26-2009, 12:00 PM   #7 (permalink)
LeopardDevX
iPhone Developer
 
Join Date: Mar 2009
Posts: 222
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
 

» Advertisements
» Online Users: 778
20 members and 758 guests
ADY, AppAnnex, at0m87, bocaraton, charles.scholten, chaseacton, Dalia, drviii, KarlJay, Morrisone, mystic.purple, PetarPM, smarkmee, suresk, thitikorn, thutrangiphonedevsdk, Touchmint, Vineesh, yufengts
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,630
Threads: 89,149
Posts: 380,345
Top Poster: BrianSlick (7,110)
Welcome to our newest member, thitikorn
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 02:40 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.