This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# If you haven't played around with WordPress much and you're trying to find out what | |
# exactly this "category object" thing that's referenced in many places is. You might | |
# look for a category table in the database for some clues, but there isn't one. That's | |
# because WordPress uses "terms" to handle both categories and tags, each of which are | |
# "taxonomies". Looking in those tables will give you want you want, or you could just | |
# print a category object. | |
# | |
# More info: http://codex.wordpress.org/WordPress_Taxonomy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
QPickOneView* myView = nil; | |
NSArray* nibViews = [[NSBundle mainBundle] loadNibNamed:@"QPickOneView" owner:self options:nil]; | |
for (id currentObject in nibViews) { | |
if ([currentObject isKindOfClass:[QPickOneView class]]) { | |
myView = (QPickOneView *) currentObject; | |
break; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGSize size = [view bounds].size; | |
UIGraphicsBeginImageContext(size); | |
[[view layer] renderInContext:UIGraphicsGetCurrentContext()]; | |
UIImage *newImage = UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# Register custom post types on the 'init' hook. | |
add_action( 'init', 'my_register_post_types' ); | |
/** | |
* Registers post types needed by the plugin. | |
* | |
* @since 1.0.0 | |
* @access public |