Skip to main content

Posts

Showing posts with the label uiimage

UIImagePickerController, UIImage, Memory and More?

I've noticed that there are many questions about how to handle UIImage objects, especially in conjunction with UIImagePickerController and then displaying it in a view (usually a UIImageView ). Here is a collection of common questions and their answers. Feel free to edit and add your own.

Objective C create new class which is an image?

Sorry I'm new to Objective C and OOP, and I'm trying to understand how to use classes. I have searched everywhere but can't find a clear answer. So in my game I want a NEW ball to be created when i tap and drag an image of a ball. Would I create a ball class, and when I tap the ball, an instance of the ball class will be created. How do I set that class to be an image of a ball?