iphone Programming Glossary: path2
CGPathRef intersection http://stackoverflow.com/questions/1021801/cgpathref-intersection CGContextAddPath context path1 CGContextClip context set fill colour to intersection colour CGContextAddPath context path2 CGContextFillPath context search for pixels that match intersection colour This works because clipping intersecting. Don't..
Get directory contents in date modified order http://stackoverflow.com/questions/1523793/get-directory-contents-in-date-modified-order inverted as we want latest date first NSArray sortedFiles filesAndProperties sortedArrayUsingComparator ^ id path1 id path2 compare NSComparisonResult comp path1 objectForKey @ lastModDate compare path2 objectForKey @ lastModDate invert.. ^ id path1 id path2 compare NSComparisonResult comp path1 objectForKey @ lastModDate compare path2 objectForKey @ lastModDate invert ordering if comp NSOrderedDescending comp NSOrderedAscending else if comp NSOrderedAscending..
how to create table in sqlite data base programmatically http://stackoverflow.com/questions/5440619/how-to-create-table-in-sqlite-data-base-programmatically NSFileManager defaultManager BOOL success NO if manager fileExistsAtPath filePath success YES if success NSString path2 NSBundle mainBundle resourcePath stringByAppendingPathComponent @ yourdatabase.db success manager copyItemAtPath path2 toPath.. path2 NSBundle mainBundle resourcePath stringByAppendingPathComponent @ yourdatabase.db success manager copyItemAtPath path2 toPath filePath error nil createStmt nil NSString tableName @ SecondTable if sqlite3_open filePath UTF8String database SQLITE_OK..
Draw glow around inside edge of multiple CGPaths http://stackoverflow.com/questions/8480401/draw-glow-around-inside-edge-of-multiple-cgpaths super viewDidLoad UIBezierPath path1 UIBezierPath bezierPathWithOvalInRect CGRectMake 20 20 60 60 UIBezierPath path2 UIBezierPath bezierPathWithOvalInRect CGRectMake 50 50 60 60 NSArray paths NSArray arrayWithObjects path1 path2 nil UIGraphicsBeginImageContextWithOptions.. path2 UIBezierPath bezierPathWithOvalInRect CGRectMake 50 50 60 60 NSArray paths NSArray arrayWithObjects path1 path2 nil UIGraphicsBeginImageContextWithOptions self.imageView.bounds.size NO 0.0 self drawInnerGlowWithPaths paths bounds self.imageView.bounds..
|