I have implemented it. It works fine. I want to cover fly images through web service. Its work is fine for anyone to send me a code to get multiple cover fly images in the same URL, which has many image properties. Any change in the backend should be displayed in the code, if the number of images does not increase then the number in the coverflow should also be shown. Of pictures.
coverflow viewer .h file
NSMutableArray * profilephotos; // declare NSMutableArray in CoverFlowViewController.m file
- View zero load {profilephotos = [[NSMutableArray alloc] initWithObjects: @ "www.xxxx .com / ima.jpeg ", @" www.xxxx.com/ima1.jpeg",@www.xxxx.com/ima2.jpeg"www@xxxx.com/ima3.jpeg"www, .xxxx.com / ima4.jpeg ", @" www.yyy.com/ima5.jpeg", nil]; NSLog (@ "ProfilePhotos =% @", ProfilePhotos); // Your array of images url loadImagesOperationQueue = [[NSOperationQueue alloc] init]; For (int i = 0; i & lt; [profilefotos count]; i ++) {nsstiting * fi = [profileofotoseindexx: ii]; NSURL * url = [NSURL URL with string: photos]; NSDTA * Data = [NSDTATA DATAVITY CONTENT URL OF: URL]; UIImage * img = [UIImage imageWith data: data]; CGSize newSize = CGSizeMake (300.0f, 300.0f); UIGraphicsBeginImageContext (newSize); [IMG Droinrakt: CGRactMake (0,0, new size.width, new size. Hi)]; UIImage * newImage = UIGraphicsGetImageFromCurrentImageContext (); UIGraphicsEndImageContext (); [(AFOpenFlowView *) self.view setImage: index for new image: i]; } [[AFOpenFlowView *] self.view setNumberOfages: [profilephotos count]]; }
Comments
Post a Comment