Friday, 4 April 2014

Navigation bar right bar symbol vigilant is not visible

-(void)setRightNavigationBarViewForUser {UIBarButtonItem *spacer =
[[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemFixedSpace
target:nil action:nil];spacer.width = 760;NSString
*title = [VimondStore sessionManager].userName;UIView *tempView = [[UIView
alloc] initWithFrame:CGRectMake(0, 0, 144, 44)];tempView.backgroundColor =
[UIColor clearColor];UIImageView *tempImageView = [[UIImageView alloc]
initWithFrame:CGRectMake(4, 0, 44, 44)];tempImageView.image = [UIImage
imageNamed:@"user.png"];UILabel *tempLabel = [[UILabel alloc]
initWithFrame:CGRectMake(44, 0, 80, 44)];tempLabel.backgroundColor =
[UIColor clearColor];tempLabel.text = title;tempLabel.font = [UIFont
boldSystemFontOfSize:14.0];tempLabel.textColor = [UIColor
whiteColor];tempLabel.textAlignment =
NSTextAlignmentLeft;tempLabel.adjustsFontSizeToFitWidth =
YES;tempLabel.minimumScaleFactor = 0.8;[tempView
addSubview:tempImageView];[tempView addSubview:tempLabel];UIBarButtonItem
*userView = [[UIBarButtonItem alloc]initWithCustomView:tempView];NSArray
*items = @[spacer
,userView];self.navigationTableViewController.navigationItem.rightBarButtonItems
= items;}-(void)navigateToHome {[self
setRightNavigationBarViewForUser];self.loginViewController = nil;[self
showCenterPanelAnimated:YES];[self
setLeftBarButtonForDrawerTitle];NSAssert([self.centreViewController
isKindOfClass:[GGBaseViewController class]], @"Must be of
GGBaseViewController class");[GenreNavigator
navigateToRoot:(GGBaseViewController*)self.centreViewController
completionHandler:nil];}My formula is given above: The problem, we am
opposed is that navigation right bar symbol equipment are not manifest
initial time when we navigate to home. When we navigate to some other page
and comes behind afterwards the visible. The initial slight is used to
emanate right navigation bar symbol items.

No comments:

Post a Comment