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: enter image description here

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 :enter image description here

you can try https://github.com/mwaterfall/mwphotobrowser credits michael waterfall


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -