Quote:
Originally Posted by smasher
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.....
