Adding autolayout constraints to navigation controller programmatically

前端 未结 3 958
闹比i
闹比i 2020-12-21 03:50

I am trying to add constraints to a UI label I added on a navigation bar. The UI label shows a running timer

Here is my code,

self.label = [[UILabel          


        
3条回答
  •  执笔经年
    2020-12-21 04:35

    I ended up adding the timer label as a right button bar item on the navigation bar. It is a hacky way to do it. But since adding constraints is not possible, it is a workaround.

提交回复
热议问题