iphone - setting UIButton font -
मेरे पास UIButton में पाठ सेट करने के लिए निम्न कोड है
[self.fullListButton_ SetTitle: [NSString stringWithFormat: @ "% d", [self.newsfeedItem_.newsfeedToSubjects count] - 3] forState: UIControlStateNormal]; समस्या यह है कि मैं इसके लिए फ़ॉन्ट सेट नहीं कर सकता। आईओएस के नए संस्करण में:
UIButton * myButton; MyButton.titleLabel.font = [UIFont systemFontOfSize: 12]; सामान:
अपने कोड में:
self.fullListButton_.titleLabel.font = [UIFont systemFontOfSize: 12]; या <पूर्व> self.fullListButton_.titleLabel.font = [UIFont fontWithName: @ "एरियल" आकार: 12];
Comments
Post a Comment