iva*_*wan 9 customization ios uirefreshcontrol
我一直在环顾四周,但找不到任何有关此事的好消息.
我想UIRefeshControl用不同的加载器等自定义默认值.到目前为止,我只能更改tintColor&attributedTitle属性,我发现的大多数代码基本上都是创建一个新的"pulltorefresh"效果,但我想要的只是使用UIRefreshControl和自定义它.
这可能吗?
您无法在不访问私有API的情况下添加不同的加载程序,但您可以添加背景图像:
UIImageView *rcImageView =
[[UIImageView alloc] initWithImage:
[UIImage imageNamed: @"refreshControl.png"]];
[self.refreshControl insertSubview:rcImageView atIndex:0];
Run Code Online (Sandbox Code Playgroud)
假设self是UITableViewController子类的一个实例.
您需要的图像尺寸为320x43px(@ 2x 640x86px),加载器动画将覆盖中间区域(约35px).
我在那里展示应用徽标......
| 归档时间: |
|
| 查看次数: |
14031 次 |
| 最近记录: |