loadNibName method is too slow - how to make it quicker?

后端 未结 1 1260
悲哀的现实
悲哀的现实 2021-01-19 13:06

I have a scroll view, which contains about 40-50 objects of different types. The object\'s types are defined in function of the object\'s location (for ex. if is the 5th obj

1条回答
  •  野的像风
    2021-01-19 13:27

    If you are programming for IOS4+, you can use the UINib class instead. It will load a cached objects and create a copy each time needed. See this blog post.

    0 讨论(0)
提交回复
热议问题