adi*_*dit 10 iphone objective-c ipad ios
我想覆盖setframe,以便它也使标签居中,但是做了类似的事情:
- (void)setFrame:(CGRect)frame
{
[self setFrame:frame};
self.center = CGPointMake(self.superview.center.x, kNavigationBarFrameHeight/2);
}
Run Code Online (Sandbox Code Playgroud)
给了我一个无限循环.那我该怎么做?
| 归档时间: |
|
| 查看次数: |
5281 次 |
| 最近记录: |