Is there a good way to adjust the size of a UITextView to conform to its content? Say for instance I have a UITextView that contains one line of text:
Ccna final exam - java, php, javascript, ios, cshap all in one. This is a collaboratively edited question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.
Tuesday, June 5, 2012
How do I size a UITextView to its content?
Monday, June 4, 2012
Dispelling the UIImage imageNamed: FUD
I see a lot of people saying imageNamed
is bad but equal numbers of people saying the performance is good - especially when rendering UITableView
s. See this SO question for example or this article on iPhoneDeveloperTips.com
Thursday, May 24, 2012
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.
How do I vertically align text within a UILabel?
I have an UILabel with two lines. Sometimes, when the text is short enough, this text is displayed in the vertical center of the UILabel.
Tuesday, May 1, 2012
Checking if a UIViewController is about to get Popped from a navigation stack?
I need to know when my view controller is about to get popped from a nav stack so I can perform an action.
Sunday, April 8, 2012
Are there any good UIScrollView Tutorials on the net?
Any good links are highly appreciated! This goes to community wiki.
Thursday, March 8, 2012
Great UIKit/Objective-C code snippets
New to Objective-C iPhone/iPod touch/iPad development, but I'm starting to discover lots of power in one-liners of code such as this:
Monday, February 27, 2012
View floating above all ViewControllers
Is it possible on iOS that a view always floats above all other views. I ask this because what I would like to achieve is a view that floats above a ViewController, and then a Modal View Controller slides in, whilst that particular view is still floating over that Modal View Controller (hope you get what I am trying to say).
Thursday, February 16, 2012
CADisplayLink with NSRunLoopCommonModes not executed for every frame when tracking UIScrollView?
I am trying to execute a small piece of code on every single frame in a regular (non-OpenGL) iPhone app. The goal is to have a frame counter so that I can measure (rather than guess) where the slow points in the app are and fix them to create a better user experience.
Friday, January 20, 2012
UIImage Resize without loss of quality
Im looking for an external library (or a method using Apple frameworks that doesn't destroy the quality) which will let me scale down images.
Tuesday, January 17, 2012
How to programmatic segue from one UIViewController to another without Modal or Push?
If one UIViewController is a login screen, and the next one is the app's home screen, what would be the most optimal way to program the transition.