Authorankush.ladhane

How to combine two images?

H

UIImageView *certImgView; – (IBAction)combineimages:(id)sender { UIImage *combinedImg=[self combineTwoImagesFirst:self.certImgView.image andSecond:[UIImage imageNamed:@”1.jpeg”]]; certImgView.image=combinedImg; } -(UIImage *)combineTwoImagesFirst:(UIImage *)cardImg andSecond:(UIImage *)faceImg { UIImage *bottomImage = faceImg; //background image UIImage *image       = cardImg;...

Easy loading image in UIImageView.

E

Replace – SelectedThemesController— (replace your class name) [SelectedThemesController processImageDataWithURLString:imgUrl andBlock:^(NSData *imageData) { if (self.view.window) { UIImage *image = [UIImage imageWithData:imageData]; if (!image) //not found show default image { pofferimg.image=[UIImage imageNamed:@”11_240X240.png”]; } else //found { NSArray *subviewArray =...

How to define core location manager method in iOS 8?

H

Step 1: Add following key and value in Info. plist of your project. 1. Key – NSLocationWhenInUseUsageDescription Value- This will be used to obtain or track your location. 2. Key -NSLocationAlwaysUseUsageDescription value- This will be used to obtain or track your location. Step 2 : add following line where you want to declare or initialise core location . if ([locationManager...

Category