I have a UIButton created in XIB and linked to my uiViewController.
Its title label not align to centre. It’s always align to left.
When app running from Xcode , its correctly align centre. When App quit and re-open (not with Xcode ) its left aligned always.
Tried
self.btnContinueSignIn.contentHorizontalAlignment = .center
but not working. All EdgeInsects are 0,0,0,0 in xib