Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>i got answer like as slideshow preview...</p> <pre><code> -(void)tableView:(UITableView *)tableView1 didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSString *message=@"\n\n\n\n\n\n\n\n\n"; UIALertView *successAlert = [[UIAlertView alloc] initWithTitle:@"title" message:message delegate:nil cancelButtonTitle:nil otherButtonTitles:nil]; UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(12, 8, 260, 274)]; NSData *mydata = [[NSData alloc] initWithContentsOfURL:[NSURL URLWithString:[images objectAtIndex:indexPath.row]]]; UIImage *bkgImg = [[UIImage alloc] initWithData:mydata ]; [imageView setImage:bkgImg]; [bkgImg release]; [mydata release]; [successAlert addSubview:imageView]; [imageView release]; UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; UIImage* myButtonImage = [UIImage imageNamed:@"Close.png"]; [button setImage:myButtonImage forState:UIControlStateNormal]; [button addTarget:self action:@selector(aMethod:) forControlEvents:UIControlEventTouchDown]; [button setTitle:@"Show View" forState:UIControlStateNormal]; button.frame = CGRectMake(255.0, 10.0, 15.0, 15.0); [successAlert addSubview:button]; [successAlert show]; [self pulse]; } float pulsesteps[3] = { 1.8, 1/15.0, 1/7.5 }; -(void) pulse { successAlert.transform = CGAffineTransformMakeScale(0.1,0.1); [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:pulsesteps[0]]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(pulseGrowAnimationDidStop:finished:context:)]; successAlert.transform = CGAffineTransformMakeScale(1.1, 1.1); [UIView commitAnimations]; } -(void)pulseGrowAnimationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:pulsesteps[1]]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(pulseShrinkAnimationDidStop:finished:context:)]; successAlert.transform = CGAffineTransformMakeScale(1.0, 1.0); [UIView commitAnimations]; } -(void)pulseShrinkAnimationDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context { [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDuration:pulsesteps[2]]; successAlert.transform = CGAffineTransformIdentity; [UIView commitAnimations]; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload