¡@

Home 

2014/10/15 ¤U¤È 10:11:24

iphone Programming Glossary: miny

How to draw a line inside the fish movement (OpenGLES in iPhone)?

http://stackoverflow.com/questions/10499077/how-to-draw-a-line-inside-the-fish-movement-opengles-in-iphone

alloc initWithFile @ img2.png effect self.effect self.children addObject target Add fish image in NSMutable array int minY target.contentSize.height 2 int maxY 320 target.contentSize.height 2 int rangeY maxY minY int actualY arc4random rangeY.. image in NSMutable array int minY target.contentSize.height 2 int maxY 320 target.contentSize.height 2 int rangeY maxY minY int actualY arc4random rangeY minY if actualY 100 actualY 215 target.position GLKVector2Make 480 target.contentSize.width.. 2 int maxY 320 target.contentSize.height 2 int rangeY maxY minY int actualY arc4random rangeY minY if actualY 100 actualY 215 target.position GLKVector2Make 480 target.contentSize.width actualY int minVelocity 480.0 12.0..

Implementing a gauge control with UIKit on the iPhone

http://stackoverflow.com/questions/2220650/implementing-a-gauge-control-with-uikit-on-the-iphone

How to erase part of an image as the user touches it

http://stackoverflow.com/questions/2978382/how-to-erase-part-of-an-image-as-the-user-touches-it

IplImage image CGPoint point int r r is the radious of the erasing int a point.x int b point.y int position int minX minY maxX maxY minX a r 0 a r 0 minY b r 0 b r 0 maxX a r image width a r image width maxY b r image height b r image height.. r r is the radious of the erasing int a point.x int b point.y int position int minX minY maxX maxY minX a r 0 a r 0 minY b r 0 b r 0 maxX a r image width a r image width maxY b r image height b r image height for int i minX i maxX i for int.. 0 b r 0 maxX a r image width a r image width maxY b r image height b r image height for int i minX i maxX i for int j minY j maxY j position j b j b i a i a if position r r uchar ptr uchar image imageData j image widthStep i image nChannels..

UITableView: scrolling programmatically the content view

http://stackoverflow.com/questions/3457900/uitableview-scrolling-programmatically-the-content-view

viewController draggableAreaView CGRect rc self bounds float totalOS tPoint.y previousYPan if contentOffSetY minY contentOffSetY maxY contentOffSetY minY 5 totalOS 0 contentOffSetY maxY 5 totalOS 0 if totalOS 0 totalOS OFFSET else if.. CGRect rc self bounds float totalOS tPoint.y previousYPan if contentOffSetY minY contentOffSetY maxY contentOffSetY minY 5 totalOS 0 contentOffSetY maxY 5 totalOS 0 if totalOS 0 totalOS OFFSET else if totalOS 0 totalOS OFFSET self setContentOffset.. OFFSET self setContentOffset CGPointMake rc.origin.x self.contentOffset.y totalOS animated NO else if contentOffSetY minY 5 totalOS 0 self resetOffset previousYPan tPoint.y void resetOffset CGRect rc self bounds if contentOffSetY minY self..

Restrict Duplicate entry in NSArray

http://stackoverflow.com/questions/3697990/restrict-duplicate-entry-in-nsarray

Random Sprite Destinations

http://stackoverflow.com/questions/3817637/random-sprite-destinations

CCSprite spriteWithFile @ Frame2.png rect CGRectMake 0 0 60 120 CGSize winSize CCDirector sharedDirector winSize int minY target.contentSize.height 2 int maxY winSize.width 1.5 target.contentSize.height 2 int rangeY maxY minY int actualY arc4random.. winSize int minY target.contentSize.height 2 int maxY winSize.width 1.5 target.contentSize.height 2 int rangeY maxY minY int actualY arc4random rangeY minY target.position ccp actualY target.contentSize.height 5 target.contentSize.height 2 actualY.. 2 int maxY winSize.width 1.5 target.contentSize.height 2 int rangeY maxY minY int actualY arc4random rangeY minY target.position ccp actualY target.contentSize.height 5 target.contentSize.height 2 actualY self addChild target int minDuration..

Rounded UIView with Shadow?

http://stackoverflow.com/questions/1225383/rounded-uiview-with-shadow

height 2.0 CGFloat minx CGRectGetMinX rrect CGFloat midx CGRectGetMidX rrect CGFloat maxx CGRectGetMaxX rrect CGFloat miny CGRectGetMinY rrect CGFloat midy CGRectGetMidY rrect CGFloat maxy CGRectGetMaxY rrect CGContextMoveToPoint context minx.. rrect CGFloat maxy CGRectGetMaxY rrect CGContextMoveToPoint context minx midy CGContextAddArcToPoint context minx miny midx miny radius CGContextAddArcToPoint context maxx miny maxx midy radius CGContextAddArcToPoint context maxx maxy midx.. CGFloat maxy CGRectGetMaxY rrect CGContextMoveToPoint context minx midy CGContextAddArcToPoint context minx miny midx miny radius CGContextAddArcToPoint context maxx miny maxx midy radius CGContextAddArcToPoint context maxx maxy midx maxy radius..

gcc-4.2 failed with exit code 1 iphone

http://stackoverflow.com/questions/1248520/gcc-4-2-failed-with-exit-code-1-iphone

background colors of cells on a grouped uitableview. The code introduced a line as such CGContextAddArcToPoint c minx miny midx miny ROUND_SIZE This gave an error indicated that it wasn't declared so I added to my .h file the following under import.. colors of cells on a grouped uitableview. The code introduced a line as such CGContextAddArcToPoint c minx miny midx miny ROUND_SIZE This gave an error indicated that it wasn't declared so I added to my .h file the following under import uikit..

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.. CGRectGetMinY rect maxy CGRectGetMaxY rect CGMutablePathRef path CGPathCreateMutable CGPathMoveToPoint path NULL minx miny CGPathAddArcToPoint path NULL minx maxy midx maxy kDefaultMargin CGPathAddArcToPoint path NULL maxx maxy maxx miny kDefaultMargin.. miny CGPathAddArcToPoint path NULL minx maxy midx maxy kDefaultMargin CGPathAddArcToPoint path NULL maxx maxy maxx miny kDefaultMargin CGPathAddLineToPoint path NULL maxx miny CGPathAddLineToPoint path NULL minx miny CGPathCloseSubpath path..

Round two corners in UIView

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

NULL 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 1.0 CGContextBeginPath context CGContextMoveToPoint context minx midy CGContextAddArcToPoint context minx miny midx miny radius_bl CGContextAddArcToPoint context maxx miny maxx midy radius_br CGContextAddArcToPoint context maxx maxy.. 1.0 CGContextBeginPath context CGContextMoveToPoint context minx midy CGContextAddArcToPoint context minx miny midx miny radius_bl CGContextAddArcToPoint context maxx miny maxx midy radius_br CGContextAddArcToPoint context maxx maxy midx maxy..

iOS Draw Rectagle with curved ends

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

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 rrect CGContextMoveToPoint context minx midy CGContextAddArcToPoint.. rrect maxy CGRectGetMaxY rrect CGContextMoveToPoint context minx midy CGContextAddArcToPoint context minx miny midx miny radius CGContextAddArcToPoint context maxx miny maxx midy radius CGContextAddArcToPoint context maxx maxy midx.. rrect maxy CGRectGetMaxY rrect CGContextMoveToPoint context minx midy CGContextAddArcToPoint context minx miny midx miny radius CGContextAddArcToPoint context maxx miny maxx midy radius CGContextAddArcToPoint context maxx maxy midx maxy radius..