So now that the beta 3 of SuperTwitter is out I”m starting to play with Titanium Mobile so we can deploy to the IPhone and Android quickly. I watched the screencast of the TiMobile demo last week and as promised got the links today with the relase of Yelpr and Kitchen Sink. I’ll be posting some code examples when I get SuperTwitter moved over, it’s great to see the API in action tho.
Making some progress on ST
example from the last post:
UIGraphicsBeginImageContext(mapWebView.bounds.size);
[mapWebView.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *snap = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
CGImageRef snapImage = [snap CGImage];
//crop
CGImageRef resizedImage = CGImageCreateWithImageInRect(snapImage, CGRectMake(100.0f, 100.0f, 121.0f, 121.0f));
CGImageRelease(snapImage);
renderInContext a layer method that will help with screenshots and hopefully caching of views
NSString *path = [[NSBundle mainBundle] pathForResource:@”tweetMessage” ofType:@”html”];
NSURL *url = [NSURL fileURLWithPath: path];
NSURLRequest *request = [NSURLRequest requestWithURL: url];
[self loadRequest: request];
Some morning progess on UiWebView
As a note the height of the status bar on the top of the iphone is 20 pixels. Yay
Not much foos coding today I did think more about how to make an official foos stand for the iphone. Or at least one that will be branded. I still need a logo.
Gah waking up at 5 is hard.