UIImageView * roundedView = [[UIImageView alloc] initWithImage: [UIImage imageNamed:@"wood.jpg"]]; // Get the Layer of any view CALayer * l = [roundedView layer]; [l setMasksToBounds:YES]; [l setCornerRadius:10.0];
// You can even add a border [l setBorderWidth:4.0]; [l setBorderColor:[[UIColor blueColor] CGColor]];
(tags: iphone cocoa graphics UIImageView UIImage tips)
[dave@host193 Frameworks]$ malloc_history 3939 0xa4e10
Call [2] [arg=32]: thread_a0000dec |0x1000 | start | _start | main | +[NSData dataWithBytes:length:] | NSAllocateObject | object_getIndexedIvars | malloc_zone_calloc
(tags: debugging osx cocoa memory zombie)
newWorkoutTableView.allowsSelectionDuringEditing = YES
(tags: uitableview iphone cocoa secrets rtfm)
The approach 1. Override UITableView to count taps 2. In your delegate, defer processing the single tap by a small delay to see if a double tap comes in
(tags: UITableview cocoa iphone)