IOS - UIImageView to other subview? -


i have uiimageview add subview subview:

[self.mapview addsubview:imgview]; 

but when push button takes me mainview. there way can make sure takes me mapview? override backbutton instance? thanks

try this:

-(void)back{  if (imgview.superview) {     [imgview removefromsuperview];     return; }   [self.navigationcontroller popviewcontrolleranimated:yes]; } 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -