2010年4月14日水曜日

How to get the drawing on a UIScrollView

UIGraphicsBeginImageContext(drawingViewController.imageView.frame.size);

drawingViewController.imageView.layer renderInContext:UIGraphicsGetCurrentContext()];

UIImage *finishedPic = UIGraphicsGetImageFromCurrentImageContext();

UIGraphicsEndImageContext();


UIImageWriteToSavedPhotosAlbum(self, @selector(exitProg:didFinishSavingWithError:contextInfo:), nil);

2010年4月6日火曜日

Window,View,ViewController,UIImageView,UIScrollView

Use a lot of them in the couple days, so it is very necessary to identify these concept.
1. Window
it is simple in one word: one app one window. All you actives is under that window

2. View
window is based on multiple views, View is what you show to the user

3. View Controller

4. UIImageView

5.UIScrollView

2010年4月1日木曜日

Long way to go.

I bought a Macbook last year, but in the past year, I use it as a PC, what a shame
SO I am thinking of familiar with this powerful machine first