References
Category:Software programmed in Python
Category:Windows programsQ:
why is the custom cell rounded in image gallery view in ios8 and xcode 6?
I am using this image gallery code. It works perfectly fine.
Now, I am facing a problem in ios8. In iOS 8, I am not able to see the rounded image view of the image gallery which is appearing in iOS7.
What could be the problem?
Here is the code for the UI:
- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath{
static NSString *cellIdentifier = @"Cell";
CollectionViewCell *cell = (CollectionViewCell*)[collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath];
if (cell == nil) {
cell = [[CollectionViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier];
}
if ([self isLargeScreen]) {
[cell setEdgesForExtendedLayout:UIRectEdgeNone];
[cell setFrame:CGRectMake(0, 0, [cell frame].size.width, [cell frame].size.height)];
// Set images from gallery
NSMutableArray *array = [[NSMutableArray alloc] init];
NSMutableArray *size = [[NSMutableArray alloc] init];
NSDictionary *temp = [self photoGallery:indexPath];
[array addObject:[temp objectForKey:@"images"]];
[array addObject:[temp objectForKey:@"image_size"]];
NSSortDescriptor *descriptor = [NSSortDescriptor sortDescriptorWithKey:@"key" ascending:YES];
NSArray *descript ac619d1d87
Related links:
Comments