Search

Saving in photos using QuartzCore framework

Posted in Iphone, Ipad, Ipod by jdam on Apr 24th, 2010

A logic that lets you save your view as image to your saved photos. Here are the steps to follow:

1. Add QuartzCore framework.

2. Add IBAction in your header.
- (IBAction)fooView;

3. In your implementation add your IBAction similar to your header file.

- (IBAction)fooView {
UIGraphicsBeginImageContext(self.view.bounds.size) ;
[self.view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);

4. Lastly make sure to call #import to your implementation. Then set your button to your method.

  • Share/Bookmark

Apple defeated Adobe

Posted in Iphone, Ipad, Ipod by jdam on Apr 23rd, 2010

It doesn’t come as much of a surprise, but Adobe have finally given up all hope for the iPhone/iPod and iPad devices, after being “banned” by Apple.

Recently, Apple changed their developer agreement, prohibiting the use of third party tools to construct iPhone applications (including the heavily invested CS5 iPhone Exporter).

Apple have reason not to include Flash on their devices because it’s now said to be almost obsolete, with the rise of HTML5 to allow video/audio and animation: a feature which is heavily supported in Mobile Safari.

Adobe have said: “We will still be shipping the ability to target the iPhone and iPad in Flash CS5. However, we are not currently planning any additional investments in that feature.”, instead they will focus their attention on the competing smart phone, Google Android.

  • Share/Bookmark