-(void)setTitle:(NSString *)title{
UILabel *titlelabel = [[UILabel alloc] initWithFrame:CGRectZero];
titlelabel.textColor= [UIColor blackColor];
titlelabel.font = [UIFont systemFontOfSize:18.0f];
titlelabel.backgroundColor=[UIColor clearColor];
titlelabel.text=title;
[titlelabel sizeToFit];
self.navigationItem.titleView=titlelabel;
}