Variable |
Type |
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
# This can be inserted as a Run Script build phase or a Build Rule in your Xcode project. | |
# You can set this to whatever you like. | |
DOCUMENTATION_DIR="Documentation" | |
BUNDLE_ID=$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "${BUILD_ROOT}/${INFOPLIST_PATH}") | |
# DOCUMENTATION_FOLDER_PATH | |
if [ -e /usr/local/bin/appledoc ] ; then | |
/usr/local/bin/appledoc --project-name $PRODUCT_NAME --output $DOCUMENTATION_DIR --logformat xcode --exit-threshold 2 --verbose xcode --docset-bundle-filename "$BUNDLE_ID.$PRODUCT_NAME.docset" . |
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
headers: | |
_ASAsyncTransaction.h | |
_ASAsyncTransactionGroup.h | |
_ASDisabledPanUITextView.h | |
_ASDisplayLayer.h | |
_ASDisplayLayerDelegate-Protocol.h | |
_ASDisplayView.h | |
_ASImageNodeDrawParameters.h | |
_ASPendingState.h | |
_ASTextNodeCachedMetrics.h |
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
/** | |
Informal protocol that traverses the responder chain until a concrete class provides | |
an instance of NSManagedObjectContext. If no responder provides on, UIApplication is extended to forward | |
the request to it's delegate. We extend the UIApplicationDelegate to add this new behavior. | |
Concrete responders can provide optional implementations of managedObjectContext. For example, a responder such as | |
a view may call [self managedObjectContext], which would start walking up the responder chain. When it gets to the view controller that owns the view, the view controller may have a concrete implementation of managedObjectContext. This can be a property, or a method that creates a new context, etc. The instance vended by the view controller method is what the view that called [self managedObjectContext] gets as a response from that method. | |
Both the responder chain and informal protocols are incredible powerful concepts that are often under utilized by developers outside of Apple. |
{
"aps": {
"alert": {
"body": "Test message",
"title": "Optional title",
"subtitle": "Optional subtitle"
},
"content-available": 1
}
- WordPress-iOS project must build and run all targets correctly.
- All dependencies must be using the version specified in the original Podfile.
- All work must be based on WordPress-iOS repository version
72862f6651bf5dbe77235e836607bc74717f7d21
.
The WordPress-iOS app repository is: https://github.com/wordpress-mobile/WordPress-iOS
Fork or clone and create a branch for this work.
Go through the existing Podfile. For each pod listed:
See your friends!
The application should load the friends list from: http://www.radfaces.com/public/radfaces.json This JSON data has the following format:
[{
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
group = dispatch_group_create(); | |
dispatch_group_enter(group); | |
[context performBlock:^{ | |
result = [context executeFetch:... | |
dispatch_group_leave(group); | |
}]; | |
groupResult = dispatch_group_wait(group, DISPATCH_TIME_FOREVER); |
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
[[[self fetchedResultsController] managedObjectContext] performBlock:^{ | |
NSError *fetchError = nil; | |
if (![self fetchedResultsController] performFetch:&fetchError]){ | |
/// handle the error. Don't just log it. | |
} else { | |
// Update the view from the main queue. | |
[[NSOperationQueue mainQueue] addOperationWithBlock:^{ | |
[tableView reloadData]; | |
}]; |
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
[[managedObject managedObjectContext] performBlock:^{ | |
NSString *value = [managedObject someValue]; | |
[NSOperationQueue mainQueue] addOperationWithBlock:^{ | |
[[self label] setText:value]; | |
}]; | |
}]; |
NewerOlder