ios - A faster way to create complex UIView? -


i have complex view, let's complexview, consists of 10 labels, 2 buttons, 2 large images , need create many times (scrolling, fast scrolling!) - texts , images different in 2 different complexview views.

currently creating each complexview instance programmatically.

1) wonder if there techniques speed process of creating uiview each time?

2) option see experiment: create xib-file particular view , extract generic part of view there - benefit that?

update: similar question detailed explanation of seamus campbell said here in accepted answer: how reuse/recycle custom element uitableviewcell does?

the best way achieve high performance displaying complex views take uitableview approach , re-use offscreen views rather creating new ones. simplest way use table view , custom cells, it's possible roll-your-own if table view's assumptions don't make sense.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -