我是从XCode 5和iOS 7 SDK开始编程的。当我使用带有'attributedText'的UIRefreshControl
创建UITableViewController
时,文本重叠在UIRefreshControl
图形(圆形进度动画)之上。
但是当我向下拉并松开手指时,文本会跳到其正常位置。为什么会发生这种情况?
UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init];
[refreshControl addTarget:self action:@selector(updateDeviceList) forControlEvents:UIControlEventValueChanged];
refreshControl.attributedTitle = [[NSAttributedString alloc] initWithString:@"Update Devices States"];
self.refreshControl = refreshControl;
在拉到底部之前:
UIRefreshControl
释放后: