【发布时间】:2013-10-03 14:37:34
【问题描述】:
我首先在 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 发布后:
【问题讨论】:
-
在这里查看我的答案:stackoverflow.com/questions/19121276/…
标签: objective-c overlay ios7 uirefreshcontrol