简体   繁体   中英

How do you populate a tableview with a class?

I'm looking for a good example on how to populate a UITableView with a class that will also push data to multiple detailed view controllers. One would just be a simple "about" page, the other a mapview. Does anyone have a good example of this or know if it can be done?

This can certainly be done! Although you'll have to explain me what you mean by "pushing" data to view controllers.

For a start, you can look into this example from the iOS Developer Library : https://developer.apple.com/library/ios/#samplecode/CurrentAddress/Introduction/Intro.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM