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
Post a Comment