Nstextfield Style
Nstextalignmentleft = 0, //visually left aligned
nstextalignmentcenter = 1, //visually centered
nstextalignmentright = 2,
Accessorytype
typedef ns_enum (Nsinteger, Uitableviewcellaccessorytype) {
Uitableviewcellaccessorynone,
Uitableviewcellaccessorydisclosureindicator,
Uitableviewcellaccessorydetaildisclosurebutton __TVOS_ Prohibited,
Uitableviewcellaccessorycheckmark,
Uitableviewcellaccessorydetailbutton NS_ENUM_AVAILABLE _ios (7_0) __tvos_prohibited//Info button. Tracks
};
UIButton Content left
Sometimes we want UIButton's title to be left aligned, we set
Btn.textLabel.textAlignment = Uitextalignmentleft
is not useful, we need to set
Btn.contenthorizontalalignment = Uicontrolcontenthorizonalignmentleft;
Uicontrolcontenthorizontalalignmentleft
But the problem comes up and the text sticks to the border, and we can set the
Btn.contentedgeinsets = Uiedgeinsetsmake (0,10, 0, 0); The
keeps the text distance from a border of 10 pixels.