开发者

Programaticly add UI asset to a UIScrollView

I am new to iOS dev and there are questions I have that aren't covered in tutorial basics. With that said, is it common to iterate over an array and programaticly add UI assets to a view?

Example:

NSString *myPlistFile = [[NSBundle mainBundle] pathForResource:PeopleStubPlist ofType:@"plist"];
pe开发者_JAVA百科opleStub = [[NSArray alloc] initWithContentsOfFile:myPlistFile];

for (int i = 0; i < peopleStub.count; i++) {
    // add UI asset (UIImage) here...
}

The goal is to create a Tiled list of "user avatars"... Since it is a tiled list, the UITableView is not an option.

Thanks, Andre


FYI - I found a solution that worked here in this blog post. http://www.raywenderlich.com/130/how-to-write-a-custom-image-picker-like-uiimagepicker

I'm still learning iOS and finding myself angry and confused most of the day...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜