TOP

Web image views

http://github.com/facebook/three20/blob/master/src/Three20/TTImageView.h


TTImageView makes it as easy to display an image as it is in HTML. Just supply the URL of the image, and TTImageView loads it and displays it efficiently. TTImageView also works with the HTTP cache described below to avoid hitting the network when possible.

http://github.com/facebook/three20/blob/fb5c8bff32d74a9c311c2c0d2afbf2790a01e611/README.mdown

Read More
TOP

iPhone friendly website with ASP.NET MVC

http://weblogs.asp.net/aaronlerch/archive/2008/06/08/rock-the-iphone-with-asp-net-mvc.aspx

Read More
TOP

Hide Keyboard example

- (IBAction) getME:(id)sender {
[myDISP resignFirstResponder]; // HIDE Keyboard!!!!
NSString *urlString = [NSString stringWithFormat:@"http://%@",myDISP.text];
NSURL *url = [NSURL URLWithString:urlString];
[webView loadRequest:[NSURLRequest requestWithURL:url]];
[myDISP setText:[NSString stringWithFormat:@"%@ -- %@", [(UIButton*)sender currentTitle], myDISP.text ]];
}
Read More
TOP

IBaction example

http://stackoverflow.com/questions/888668/get-text-of-button-from-ibaction-iphone

When an IBAction is called:

-(IBAction) onClick1: (id) sender;

What is passed in the sender? Since it’s hooked up through the IB, I’m not really sure. My question is how to get the text of the button to be the passed object (NSString most likely) so that I could call it inside the action implementation.

-(IBAction) onClick1: (id) sender {
  NSLog(@"User clicked %@", sender);
  // Do something here with the variable 'sender'
}

****
- (IBAction)onClick1: (id) sender {
    // Make sure it's a UIButton
    if (![sender isKindOfClass:[UIButton class]])
        return;

    NSString *title = [(UIButton *)sender currentTitle]; /// HERE KID!!!!!
} 
Read More
TOP

IPhone Examples

http://developer.apple.com/iphone/library/navigation/index.html

Read More
TOP

Hottest Questions – Stack Overflow

http://stackoverflow.com/

lots of IT questions & answers

Read More
TOP

A printf cheat sheet (reference page)

http://www.devdaily.com/blog/post/software-dev/cheat-sheet-reference-printf-format-specifier-syntax/


printf – a quick look at Perl and Java
In this cheat sheet I’m going to show all the examples using Perl, but I thought at first it might help to one printf example using both Perl and Java. So, here’s a simple Perl printf example to get us started:

printf(“the %s jumped over the %s, %d times”, “cow”, “moon”, 2);
And here are three different ways of using printf format specifier syntax with Java:

System.out.format(“the %s jumped over the %s, %d times”, “cow”, “moon”, 2);
System.err.format(“the %s jumped over the %s, %d times”, “cow”, “moon”, 2);
String result = String.format(“the %s jumped over the %s, %d times”, “cow”,”moon”, 2);

 


%c character
%d decimal (integer) number (base 10)
%e exponential floating-point number
%f floating-point number
%i integer (base-10)
%o octal number (base-8)
%s a string of characters
%u unsigned decimal (integer) number
%x number in hexadecimal (base 16)
%% print a percent sign
\% print a percent sign

Read More
TOP

Apple iPhone OS Reference Library

http://developer.apple.com/iphone/library/navigation/index.html

Read More
TOP

Xcode Quick Tour

Xcode Quick Tour iPhone OS

Read More
TOP

iPhone Tutorial – Hello World

Read More

Switch to our mobile site