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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -