Pages

Sunday 27 September 2015

Definitions

Framwork
          A framework is a collection of resources; it collects a static library and its header files into a single structure that Xcode can easily incorporate into your projects.

Tuesday 22 September 2015

Resize image

CGRect rect = CGRectMake(0,0,75,75);
    UIGraphicsBeginImageContext( rect.size );
    [image drawInRect:rect];
    UIImage *picture1 = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();

    NSData *imageData = UIImagePNGRepresentation(picture1);
    UIImage *img=[UIImage imageWithData:imageData];