¡@

Home 

2014/10/15 ¤U¤È 10:05:05

iphone Programming Glossary: cgrectgetminy

How to make Supplementary View float in UICollectionView as Section Headers do in UITableView plain style

http://stackoverflow.com/questions/13511733/how-to-make-supplementary-view-float-in-uicollectionview-as-section-headers-do-i

CGPoint origin layoutAttributes.frame.origin origin.y MIN MAX contentOffset.y cv.contentInset.top CGRectGetMinY firstObjectAttrs.frame headerHeight CGRectGetMaxY lastObjectAttrs.frame headerHeight layoutAttributes.zIndex 1024..

Blur an image of specific part (rectangular, circular)?

http://stackoverflow.com/questions/14107979/blur-an-image-of-specific-part-rectangular-circular

CGContextBeginPath context CGContextSaveGState context CGContextTranslateCTM context CGRectGetMinX rect CGRectGetMinY rect CGContextScaleCTM context radious radious CGFloat rectWidth CGRectGetWidth rect radious CGFloat rectHeight CGRectGetHeight..

iOS Hiding tab bar in iOS 6 creates black bar (fix for iOS 6 breaks iOS 7!)

http://stackoverflow.com/questions/19006545/ios-hiding-tab-bar-in-ios-6-creates-black-bar-fix-for-ios-6-breaks-ios-7

CGRectGetWidth self.tabBar.frame CGRectGetHeight self.tabBar.frame view.frame CGRectMake CGRectGetMinX view.frame CGRectGetMinY view.frame CGRectGetWidth view.frame height void ^completionBlock BOOL finished ^ BOOL finished self.tabBar.hidden hidden..

Rounded Corners on UIImage

http://stackoverflow.com/questions/205431/rounded-corners-on-uiimage

CGMutablePathRef borderPath CGPathCreateMutable CGPathAddArc borderPath NULL CGRectGetMinX interiorRect CGRectGetMinY interiorRect radius PNDegreeToRadian 180 PNDegreeToRadian 270 NO CGPathAddArc borderPath NULL CGRectGetMaxX interiorRect.. radius PNDegreeToRadian 180 PNDegreeToRadian 270 NO CGPathAddArc borderPath NULL CGRectGetMaxX interiorRect CGRectGetMinY interiorRect radius PNDegreeToRadian 270.0 PNDegreeToRadian 360.0 NO CGPathAddArc borderPath NULL CGRectGetMaxX interiorRect..

Smoothing a rounded stroke in Core Graphics

http://stackoverflow.com/questions/2181279/smoothing-a-rounded-stroke-in-core-graphics

c YES CGFloat minx CGRectGetMinX rect midx CGRectGetMidX rect maxx CGRectGetMaxX rect CGFloat miny CGRectGetMinY rect maxy CGRectGetMaxY rect CGMutablePathRef path CGPathCreateMutable CGPathMoveToPoint path NULL minx miny CGPathAddArcToPoint..

How to fill a path with gradient in drawRect:?

http://stackoverflow.com/questions/2985359/how-to-fill-a-path-with-gradient-in-drawrect

context CGContextAddEllipseInRect context rect CGContextClip context CGPoint startPoint CGPointMake CGRectGetMidX rect CGRectGetMinY rect CGPoint endPoint CGPointMake CGRectGetMidX rect CGRectGetMaxY rect CGContextDrawLinearGradient context gradient startPoint..

UIView shake animation

http://stackoverflow.com/questions/3844557/uiview-shake-animation

lockView.frame CGMutablePathRef shakePath CGPathCreateMutable CGPathMoveToPoint shakePath NULL CGRectGetMinX frame CGRectGetMinY frame for int index 0 index numberOfShakes index CGPathAddLineToPoint shakePath NULL CGRectGetMinX frame frame.size.width.. 0 index numberOfShakes index CGPathAddLineToPoint shakePath NULL CGRectGetMinX frame frame.size.width vigourOfShake CGRectGetMinY frame CGPathAddLineToPoint shakePath NULL CGRectGetMinX frame frame.size.width vigourOfShake CGRectGetMinY frame CGPathCloseSubpath.. CGRectGetMinY frame CGPathAddLineToPoint shakePath NULL CGRectGetMinX frame frame.size.width vigourOfShake CGRectGetMinY frame CGPathCloseSubpath shakePath shakeAnimation.path shakePath shakeAnimation.duration durationOfShake lockView.layer..

How to customize the background/border colors of a grouped table view cell?

http://stackoverflow.com/questions/400965/how-to-customize-the-background-border-colors-of-a-grouped-table-view-cell

CGContextAddRect context rect return CGContextSaveGState context 2 CGContextTranslateCTM context CGRectGetMinX rect 3 CGRectGetMinY rect CGContextScaleCTM context ovalWidth ovalHeight 4 fw CGRectGetWidth rect ovalWidth 5 fh CGRectGetHeight rect ovalHeight..

Find a point, a given distance, along a simple cubic bezier curve. (On an iPhone!)

http://stackoverflow.com/questions/4058979/find-a-point-a-given-distance-along-a-simple-cubic-bezier-curve-on-an-iphone

drawRect CGRect rect CGPoint p1 p2 p3 p4 p1 CGPointMake 30 rect.size.height 0.33 p2 CGPointMake CGRectGetMidX rect CGRectGetMinY rect p3 CGPointMake CGRectGetMidX rect CGRectGetMaxY rect p4 CGPointMake 30 CGRectGetMaxX rect rect.size.height 0.66 UIColor..

Drawing in CATiledLayer with CoreGraphics CGContextDrawImage

http://stackoverflow.com/questions/4067512/drawing-in-catiledlayer-with-coregraphics-cgcontextdrawimage

floorf CGRectGetMinX rect tileSize.width int lastCol floorf CGRectGetMaxX rect 1 tileSize.width int firstRow floorf CGRectGetMinY rect tileSize.height int lastRow floorf CGRectGetMaxY rect 1 tileSize.height for int row firstRow row lastRow row for int..

Find the tangent of a point on a cubic bezier curve (on an iPhone)

http://stackoverflow.com/questions/4089443/find-the-tangent-of-a-point-on-a-cubic-bezier-curve-on-an-iphone

drawRect CGRect rect CGPoint p1 p2 p3 p4 p1 CGPointMake 30 rect.size.height 0.33 p2 CGPointMake CGRectGetMidX rect CGRectGetMinY rect p3 CGPointMake CGRectGetMidX rect CGRectGetMaxY rect p4 CGPointMake 30 CGRectGetMaxX rect rect.size.height 0.66 UIColor..

Round two corners in UIView

http://stackoverflow.com/questions/4847163/round-two-corners-in-uiview

return NULL cerate mask CGFloat minx CGRectGetMinX rect midx CGRectGetMidX rect maxx CGRectGetMaxX rect CGFloat miny CGRectGetMinY rect midy CGRectGetMidY rect maxy CGRectGetMaxY rect CGContextBeginPath context CGContextSetGrayFillColor context 1.0 0.0..

UIImage with transparent rounded corners

http://stackoverflow.com/questions/4885713/uiimage-with-transparent-rounded-corners

the origin of the contex to the lower left corner of the rectangle. CGContextTranslateCTM context CGRectGetMinX rect CGRectGetMinY rect Normalize the scale of the context so that the width and height of the arcs are 1.0 CGContextScaleCTM context ovalWidth..

iPhone Glossy Icons Using Core Graphics

http://stackoverflow.com/questions/5541457/iphone-glossy-icons-using-core-graphics

0 CGContextAddRect context rect return CGContextSaveGState context CGContextTranslateCTM context CGRectGetMinX rect CGRectGetMinY rect CGContextScaleCTM context ovalWidth ovalHeight fw CGRectGetWidth rect ovalWidth fh CGRectGetHeight rect ovalHeight..

How to draw a triangle programmatically

http://stackoverflow.com/questions/6697614/how-to-draw-a-triangle-programmatically

rect CGContextRef ctx UIGraphicsGetCurrentContext CGContextBeginPath ctx CGContextMoveToPoint ctx CGRectGetMinX rect CGRectGetMinY rect top left CGContextAddLineToPoint ctx CGRectGetMaxX rect CGRectGetMidY rect mid right CGContextAddLineToPoint ctx CGRectGetMinX..

How to solve Xcode 4.1 (LION) GPS error?

http://stackoverflow.com/questions/6792061/how-to-solve-xcode-4-1-lion-gps-error

How to mask a square image into an image with round corners in the iPhone SDK?

http://stackoverflow.com/questions/996292/how-to-mask-a-square-image-into-an-image-with-round-corners-in-the-iphone-sdk

0 CGContextAddRect context rect return CGContextSaveGState context CGContextTranslateCTM context CGRectGetMinX rect CGRectGetMinY rect CGContextScaleCTM context ovalWidth ovalHeight fw CGRectGetWidth rect ovalWidth fh CGRectGetHeight rect ovalHeight..