Replica
Opening Google / Apple Map from App
Set different text for default action (Twitter, Facebook) of UIActivityViewController
Handle completion of customized UIActivityViewController
Show color icon of LINE and other apps in UIActivityViewController
Stop scrolling of UIScrollView

http://stackoverflow.com/questions/3410777/how-can-i-programmatically-force-stop-scrolling-in-a-uiscrollview

            [self.scrollView setContentOffset:self.scrollView.contentOffset animated:NO];
            self.scrollView.contentOffset = CGPointZero;

Make UITableViewHeaderFooterView Transparent

    uiTableViewHeaderFooterView.backgroundView = nil;

UITableView Expand/Collapse cell (Accordion)
Wait reloadData of UITableView
resizableImageWithCapInsets

http://tech-gym.com/2013/01/ios/1096.html

resizableImageWithCapInsets:UIEdgeInsetsMake(top, left, bottom, right) では、伸縮したくない領域を指定する

Drow rounded frame

- (void)drawRect:(CGRect)rect {
    CGContextRef context = UIGraphicsGetCurrentContext();
   
    // Frame color/width
    CGContextSetRGBStrokeColor(context, 0.8, 0.8, 0.8, 1.0);
    CGContextSetLineWidth(context, 1.0);
   
    // Draw frame
    CGRect r1 = CGRectMake(10, 5.0, 300, 140);
    [self drawRoundRect:r1 withRadius:4.0 inContext:context];
   
    // Draw gray net
    CGContextSetRGBFillColor(context, 1, 1, 1, 1.0);
    CGRect r2 = CGRectMake(10, 5.0, 300, 140);
    [self fillRoundRect:r2 withRadius:4.0 inContext:context];
   
    // Set broken line
    const CGFloat dashStyle[] = {2.0};
    CGContextSetLineDash(context, 0.0, dashStyle, 1);
    CGContextSetLineCap(context,kCGLineCapRound);
   
    // Draw broken line
    CGContextMoveToPoint(context, rect.origin.x + 10, rect.origin.y + 110);
    CGContextAddLineToPoint(context, rect.size.width - 10, rect.origin.y + 110);
    CGContextStrokePath(context);
}

- (void)drawRoundRect:(CGRect)rect withRadius:(CGFloat)radius inContext:(CGContextRef)context {
    CGFloat lx = CGRectGetMinX(rect);
    CGFloat cx = CGRectGetMidX(rect);
    CGFloat rx = CGRectGetMaxX(rect);
    CGFloat by = CGRectGetMinY(rect);
    CGFloat cy = CGRectGetMidY(rect);
    CGFloat ty = CGRectGetMaxY(rect);
   
    CGContextMoveToPoint(context, lx, cy);
    CGContextAddArcToPoint(context, lx, by, cx, by, radius);
    CGContextAddArcToPoint(context, rx, by, rx, cy, radius);
    CGContextAddArcToPoint(context, rx, ty, cx, ty, radius);
    CGContextAddArcToPoint(context, lx, ty, lx, cy, radius);
    CGContextClosePath(context);
    CGContextStrokePath(context);
}

- (void)fillRoundRect:(CGRect)rect withRadius:(CGFloat)radius inContext:(CGContextRef)context {
    CGFloat lx = CGRectGetMinX(rect);
    CGFloat cx = CGRectGetMidX(rect);
    CGFloat rx = CGRectGetMaxX(rect);
    CGFloat by = CGRectGetMinY(rect);
    CGFloat cy = CGRectGetMidY(rect);
    CGFloat ty = CGRectGetMaxY(rect);
   
    CGContextMoveToPoint(context, lx, cy);
    CGContextAddArcToPoint(context, lx, by, cx, by, radius);
    CGContextAddArcToPoint(context, rx, by, rx, cy, radius);
    CGContextAddArcToPoint(context, rx, ty, cx, ty, radius);
    CGContextAddArcToPoint(context, lx, ty, lx, cy, radius);
    CGContextClosePath(context);

    CGContextFillPath(context);
}