1.UIButton title from the left display
Button.contenthorizontalalignment = Uicontrolcontenthorizontalalignmentleft;
2.UITextField placeholder Color
Method One:
Textfield.placeholder = @ "This is placeholder"; [Textfieldsetvalue:[uicolor redcolor]forkeypath:@ "_placeholderlabel.textcolor"];
Method Two: (After IOS 6)
nsmutableattributedstring *placeholder = [[Nsmutableattributedstring alloc]initwithstring:@ "This is placeholder"]; [Placeholderaddattribute:nsforegroundcolorattributename value:[uicolor Redcolor] range:NSMakeRange (0, Placeholder.length)]; [Placeholderaddattribute:nsfontattributename value:[uifontboldsystemfontofsize:14] range:NSMakeRange (0 , placeholder.length)];textfield.attributedplaceholder = placeholder;
3. Hide the split line at the top of the TabBar
[Self.tabbar setvalue:@ (YES) forkeypath:@ "_hidesshadow"];
IOS sets some properties with KeyPath