【发布时间】:2019-03-03 16:49:31
【问题描述】:
我目前正在开发一个 iPad 应用程序,它有四个视图,可以使用分段控件进行查看。其中一个视图是我使用 UIScrollView 创建的图片库。问题是所有图像都在 viewDidLoad 方法中加载到视图中,因此当我在分段控件中按下“图像”时,大约需要一秒钟,直到控件突出显示“图像”并显示非常不方便的视图。 I'd like to achieve that when "images" is chosen the segmented control switches immediately and the view is being loaded and then the images should be loaded and put into the scroll view one after another.
怎么做?
【问题讨论】:
标签: xcode image load uisegmentedcontrol viewdidload