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? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -