(iOS編)


※製品レベルのものもGitHubに存在する
※AppStoreに公開されているものが良い
※3ヶ月以内に更新されてるとなお良い
・HackerNews
(https://github.com/mmackh/Hacker-News-for-iOS)
・NAVERまとめのまとめ
(https://github.com/kurimon/navermm_ios)
・Newspaper
(https://github.com/lchoung/Newspaper)

JSON API
XML API

Push Notification
画像/音声
- (void)awakeFromNib
{
[self setLeftPanel:[[UIStoryboard storyboardWithName:@"Settings" bundle:nil]
instantiateViewControllerWithIdentifier:@"SettingsViewController"]];
[self setCenterPanel:[[UIStoryboard storyboardWithName:@"Main" bundle:nil]
instantiateViewControllerWithIdentifier:@"FeedsViewController"]];
}
export APPLICATION_ID='Your Application ID'
export REST_API_KEY='REST API KEY'
curl -X POST \
-H "X-Parse-Application-Id: ${APPLICATION_ID}" \
-H "X-Parse-REST-API-Key: ${REST_API_KEY}" \
-H "Content-Type: application/json" \
-d '{
"where": {
"deviceType": "ios"
},
"data": {
"alert": "Hello World!",
"sound": "happy01.mp3"
}
}' \
https://api.parse.com/1/push
Undefined symbols for architecture i386:
"_FBTokenInformationExpirationDateKey", referenced from:
-[PFFacebookTokenCachingStrategy cacheTokenInformation:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy expirationDate] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
-[PFFacebookTokenCachingStrategy setExpirationDate:] in ParseFacebookUtils(PFFacebookTokenCachingStrategy.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
http://stackoverflow.com/questions/23724116/how-to-use-cocoa-pods-and-the-parse-sdk-without-getting-linker-errors
NSString *thumbnailUrl =
[NSString stringWithFormat:@"%@%@",
THUMBNAIL_BASE_API_URL, dicRow[@"link"]];
//Using SDWebImage, load image asynchronously
[cell.thumbnailImageView sd_setImageWithURL:[NSURL URLWithString:thumbnailUrl]
placeholderImage:nil
completed:^(UIImage *image,
NSError *error,
SDImageCacheType cacheType, NSURL *imageURL) {
if(image && cacheType == SDImageCacheTypeNone){
cell.thumbnailImageView.alpha = 0.0;
[UIView animateWithDuration:1.0f animations:^{
cell.thumbnailImageView.alpha = 1.0f;
}];
}
}];