天天看點

iOS 在導覽列上添加自定義的u…

    UILabel * label=[[UILabel alloc]initWithFrame:CGRectMake(0.0f,0.0f, 120.0f, 36.0f)];

    label.backgroundColor=[UIColor colorWithRed:0 green:0 blue:0 alpha:0];

    label.text=@"蘋果系統";

    self.navigationItem.titleView = label;

    self.title = @"Hello";