Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
valentin bancarel
4,459 PointsHow to graphically implement am iOS card game correctly?
Hello, I'm trying to develop a Cards against humanity game for iOS, but I wonder how to implement the cards itself, let me explain: each player got 10 cards on his phone, in my code, I code the 10 cards object correctly, there is no problem for that. but I don't know how to display each card as a graphic object. I guess I'll have to implement a new UIView or something, which represent a card (basically a rectangle with round corner, a background color, and just a label), but I have no idea how to it. And mainly how to bind my model object to my view object.
I hope it's clear, and I hope I understand well the model-view of objc, because I'm not sure of that.
1 Answer
valentin bancarel
4,459 PointsOk, I want to apologize for that question, as I haven't search correctly for that one, but after I describe my problem here, I search google in another way, and I found this: https://developer.apple.com/library/ios/recipes/xcode_help-IB_objects_media/Chapters/CreatingaLiveViewofaCustomObject.html and https://developer.apple.com/library/ios/documentation/WindowsViews/Conceptual/ViewPG_iPhoneOS/CreatingViews/CreatingViews.html which is literally what I was looking for.