¡@

Home 

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

iphone Programming Glossary: cgrectgetminx

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

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

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

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

if hidden height CGRectGetHeight self.tabBar.frame void ^workerBlock ^ self.tabBar.frame CGRectMake CGRectGetMinX self.tabBar.frame height CGRectGetWidth self.tabBar.frame CGRectGetHeight self.tabBar.frame view.frame CGRectMake CGRectGetMinX.. self.tabBar.frame height 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..

Rounded Corners on UIImage

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

CGContextSaveGState maskedContextRef CGMutablePathRef borderPath CGPathCreateMutable CGPathAddArc borderPath NULL CGRectGetMinX interiorRect CGRectGetMinY interiorRect radius PNDegreeToRadian 180 PNDegreeToRadian 270 NO CGPathAddArc borderPath NULL.. CGRectGetMaxY interiorRect radius PNDegreeToRadian 0.0 PNDegreeToRadian 90.0 NO CGPathAddArc borderPath NULL CGRectGetMinX interiorRect CGRectGetMaxY interiorRect radius PNDegreeToRadian 90.0 PNDegreeToRadian 180.0 NO CGContextBeginPath maskedContextRef..

Smoothing a rounded stroke in Core Graphics

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

CGColor CGContextSetLineWidth c 2 CGContextSetAllowsAntialiasing c YES CGContextSetShouldAntialias c YES CGFloat minx CGRectGetMinX rect midx CGRectGetMidX rect maxx CGRectGetMaxX rect CGFloat miny CGRectGetMinY rect maxy CGRectGetMaxY rect CGMutablePathRef..

How to add line numbers to a UITextView?

http://stackoverflow.com/questions/2836162/how-to-add-line-numbers-to-a-uitextview

for uint x 0 x numberOfLines x NSString lineNum NSString stringWithFormat @ d x xOrigin CGRectGetMinX self.bounds yOrigin internalTextView.font.pointSize abs internalTextView.font.descender x TXT_VIEW_INSETS internalScrollView.contentOffset.y..

UIView shake animation

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

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

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

0 ovalHeight 0 1 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..

Drawing in CATiledLayer with CoreGraphics CGContextDrawImage

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

scale calculate the rows and columns of tiles that intersect the rect we have been asked to draw int firstCol floorf CGRectGetMinX rect tileSize.width int lastCol floorf CGRectGetMaxX rect 1 tileSize.width int firstRow floorf CGRectGetMinY rect tileSize.height..

Round two corners in UIView

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

free the rgb colorspace CGColorSpaceRelease colorSpace if context NULL return NULL cerate mask CGFloat minx CGRectGetMinX rect midx CGRectGetMidX rect maxx CGRectGetMaxX rect CGFloat miny CGRectGetMinY rect midy CGRectGetMidY rect maxy CGRectGetMaxY..

UIImage with transparent rounded corners

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

context Translate 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..

iPhone Glossy Icons Using Core Graphics

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

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

Creating pdf Thumbnail in iphone

http://stackoverflow.com/questions/5658993/creating-pdf-thumbnail-in-iphone

pageRect.size CGContextRef context UIGraphicsGetCurrentContext CGContextTranslateCTM context CGRectGetMinX pageRect CGRectGetMaxY pageRect CGContextScaleCTM context 1 1 CGContextTranslateCTM context pageRect.origin.x pageRect.origin.y..

iOS Draw Rectagle with curved ends

http://stackoverflow.com/questions/6553804/ios-draw-rectagle-with-curved-ends

context UIColor blackColor CGColor CGContextSetRGBFillColor context 0.0 0.0 1.0 1.0 CGRect rrect CGRectMake CGRectGetMinX rect CGRectGetMinY rect CGRectGetWidth rect 30 CGRectGetHeight rect 30 CGFloat radius 0.5f CGFloat minx CGRectGetMinX rrect.. CGRectGetMinX rect CGRectGetMinY rect CGRectGetWidth rect 30 CGRectGetHeight rect 30 CGFloat radius 0.5f CGFloat minx CGRectGetMinX rrect midx CGRectGetMidX rrect maxx CGRectGetMaxX rrect CGFloat miny CGRectGetMinY rrect midy CGRectGetMidY rrect maxy CGRectGetMaxY..

How to draw a triangle programmatically

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

void drawRect CGRect rect CGContextRef ctx UIGraphicsGetCurrentContext CGContextBeginPath ctx CGContextMoveToPoint ctx CGRectGetMinX rect CGRectGetMinY rect top left CGContextAddLineToPoint ctx CGRectGetMaxX rect CGRectGetMidY rect mid right CGContextAddLineToPoint.. rect top left CGContextAddLineToPoint ctx CGRectGetMaxX rect CGRectGetMidY rect mid right CGContextAddLineToPoint ctx CGRectGetMinX rect CGRectGetMaxY rect bottom left CGContextClosePath ctx CGContextSetRGBFillColor ctx 1 1 0 1 CGContextFillPath ctx ..

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 ovalHeight 0 CGContextAddRect context rect return CGContextSaveGState context CGContextTranslateCTM context CGRectGetMinX rect CGRectGetMinY rect CGContextScaleCTM context ovalWidth ovalHeight fw CGRectGetWidth rect ovalWidth fh CGRectGetHeight..