Archive for May, 2010
iOS Developer Tips - Visitor Stats:
|
|
|
Display YouTube Videos Without Exiting Your Application
If you’d like to play a YouTube video inside your application there are two common ways to do this, by launching the YouTube player and by using a UIWebview. Launch Native YouTube Application This approach will exit your application and begin the YouTube player on the iPhone: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.youtube.com/watch?v=gczw0WRmHQU"]];
Convert an Image (UIImage) to Grayscale
A trick you won’t need often, yet when the day arrives, you’ll have this up your sleeve – a quick method to convert a UIImage object to grayscale.
Screen Capture using UIGetScreenImage
Editor’s Note: I read today (7/22/2010) that Apple is no longer approving applications using UIGetScreenImage. I haven’t been able to find an official Apple announcement on this – however, please give this consideration before using this method in your apps. As talked about on TUAW, among other popular blogs, Apple has opened up the API [...]
Showing Activity Indicator (spinner) in Table Cells
Following are two ways to display UIActivityIndicatorViews in a cell of a table view (UITableView). The first will add a spinner as an accessory view, which will display the spinner on the right of the cell. The second approach will add a spinner as a subview in the cell. The primary advantage of using a [...]






