iphone Programming Glossary: framerect
Grouped uitableview with shadow http://stackoverflow.com/questions/6912904/grouped-uitableview-with-shadow const CGFloat PageCellBackgroundRadius 6.0 for int i 0 i self numberOfSections i NSInteger viewTag i 123456 CGRect frameRect self shadowFrameForSection i UIView shadowBackgroundView self viewWithTag viewTag if shadowBackgroundView if CGRectEqualToRect.. i UIView shadowBackgroundView self viewWithTag viewTag if shadowBackgroundView if CGRectEqualToRect frameRect shadowBackgroundView.frame shadowBackgroundView.frame frameRect CGPathRef shadowPath UIBezierPath bezierPathWithRoundedRect.. viewTag if shadowBackgroundView if CGRectEqualToRect frameRect shadowBackgroundView.frame shadowBackgroundView.frame frameRect CGPathRef shadowPath UIBezierPath bezierPathWithRoundedRect shadowBackgroundView.bounds byRoundingCorners UIRectCornerAllCorners..
Most efficient way to draw part of an image in iOS http://stackoverflow.com/questions/8035673/most-efficient-way-to-draw-part-of-an-image-in-ios this is how I currently do it void drawRect CGRect rect CGContextRef context UIGraphicsGetCurrentContext CGRect frameRect CGRectMake frameOrigin.x rect.origin.x frameOrigin.y rect.origin.y rect.size.width rect.size.height CGImageRef imageRef.. rect.origin.y rect.size.width rect.size.height CGImageRef imageRef CGImageCreateWithImageInRect image_.CGImage frameRect CGContextTranslateCTM context 0 rect.size.height CGContextScaleCTM context 1.0 1.0 CGContextDrawImage context rect imageRef..
|