ios - How to show navigation bar top and tool bar below when showing uiimage in full screen? -
-(void)imagefullscreen:(uitapgesturerecognizer*)sender{ modalcon = [[uiviewcontroller alloc] init]; modalcon.view.backgroundcolor=[uicolor blackcolor]; modalcon.view.userinteractionenabled=yes; uiimageview *imageview = [[uiimageview alloc] initwithframe:modalcon.view.frame]; imageview.contentmode = uiviewcontentmodescaleaspectfit; imageview.image = self.mimageview.image; [modalcon.view addsubview:imageview]; uitapgesturerecognizer *modaltap =[[uitapgesturerecognizer alloc] initwithtarget:self action:@selector(dismissmodalview:)]; [modalcon.view addgesturerecognizer:modaltap]; [self.delegate showfullscreen:modalcon]; return; }
the method showfullscreen:modalcon show modalviewcontroller(modalcon) , on touch of image shown, dismiss. when image full screen, navigation bar not shown (black bars come both above , below image) this:
but want same behaviour ios photos app on click of photo in library navigation bar comes , tool bar down multiple buttons comes , edit, back, share, delete options come :
you can try https://github.com/mwaterfall/mwphotobrowser credits michael waterfall
Comments
Post a Comment