|
我开发了一个应用模块包,(html)前端js调用方法pushA视图,A视图某按钮回调方法打开新页面(html),当我在新打开的html点击返回图标时,回到A视图界面,发现导航栏消失了。回调方法- -(void)onclickFriend{
-
-
- if (cbId) {
-
- [self.viewController.navigationController setNavigationBarHidden:NO animated:NO];
- [self.viewController.navigationController.navigationBar setBackgroundImage:[self createImageWithColor:HEXCOLOR([RC_COLOR intValue])] forBarMetrics:UIBarMetricsDefault];
-
- [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];
- int badge=(int)[[RCIM sharedRCIM] getTotalUnreadCount];
- NSDictionary *ret =[[NSDictionary alloc] initWithObjectsAndKeys:[NSNumber numberWithInt:badge],@"badge",[NSNumber numberWithInt:3],@"status",nil];
- NSDictionary *errorInfo = [NSDictionary dictionaryWithObject:MODULE_CALL_INVALID_PARAM forKey:@"code"];
- [self sendResultEventWithCallbackId:[cbId intValue] dataDict:ret errDict:errorInfo doDelete:NO];
-
- }
-
- }
复制代码
|
|