开发者

TTPhotoViewController remove toolbar and block tab bar item title change

I am using TTPhotoViewController to show several images from the net. I have shiny black styled application with customized tab bar (image is drawn over all tab bar layers). When TTPhotoViewController appears on the screen it adds blue toolbar above my tab bar. How can I remove it or prevent showing? 开发者_如何学Goself.navigationController.toolbar.translucent = YES; doesn't work for me.

Another question is how I can keep TTPhotoViewController silent? It draws current photo file name instead of my current uitabbaritem title which makes Apple's overlay appear over my customized tab bar image layer.


upd: Found way to hide toolbar forever: just commented out toolbar-related code from TTPhotoViewController.m in -(void)loadView method.


Found way to hide toolbar forever: just commented out toolbar-related code from TTPhotoViewController.m in - (void)loadView method.

Also found that uitabbaritem.title changes automatically if self.title was changed, so simply comment out changes to self.title in - (void)updateChrome method too.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜