ios - objc - UITableView Title too wide.. What are my options? -
i have uitableview
set tableview title wide label.
i'm trying like: "daily schedule - long station name"
ideally, mean title , subtitle. there isn't subtitle field, there anyway display wide label?
please note not asking uitableview section headers
.
this tableviewcontrollertitle.
thanks
i think referring title displayed uinavigationcontroller
. in case, can away custom title view, in can have 2 lines in text label. here example i'm using.
// title label view assign titleview property uilabel *titlelabel = [[uilabel alloc] initwithframe:cgrectmake(0, 0, 140, 50)]; titlelabel.numberoflines = 2; titlelabel.text = @"daily schedule - long station name"; titlelabel.textcolor = [uicolor whitecolor]; titlelabel.font = [uifont fontwithname:@"montserrat-regular" size:22]; titlelabel.adjustsfontsizetofitwidth = yes; titlelabel.minimumscalefactor = 0.8; titlelabel.textalignment = nstextalignmentcenter; self.navigationitem.titleview = titlelabel;
edit or delete attributes effects want title.
Comments
Post a Comment