 <p>This way you can set the fontSize and can handle it in just one <code>class</code>.</p> <h3>1. Created an <code>extension</code> of <code>UIButton</code> and added following code:</h3> <pre><code>- (void)awakeFromNib{ [super awakeFromNib]; [self setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal]; [self.titleLabel setFont:[UIFont fontWithName:@"font" size:self.titleLabel.font.pointSize]]; [self setContentHorizontalAlignment:UIControlContentHorizontalAlignmentCenter]; } </code></pre> <h3>2.1 Create <code>UIButton</code> inside Code</h3> <p>Now if you create a <code>UIButton</code> inside your code, <code>#import</code> the <code>extension of your</code>UIButton` and create the Button. </p> <h3>2.2 Create Button in <code>Interface Builder</code></h3> <p>If you create the <code>UIButton</code> inside the <code>Interface Builder</code>, select the <code>UIButton</code>, go to the <code>Identity Inspector</code> and add the created <code>extension</code> as <code>class</code> for the <code>UIButton</code>.</p>