aa
This file contains hidden or 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
find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist | xargs -IFILE defaults write FILE DVTPlugInCompatibilityUUIDs -array-add A2E4D43F-41F4-4FB9-BB94-7177011C9AED |
This file contains hidden or 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
#import "MasterViewController.h" | |
#import "DetailViewController.h" | |
#import "MyNavigationController.h" | |
#import "NavigateFlipSegue.h" | |
@interface MasterViewController () <MyNavigationControllerDelegate> // 委譲用プロトコルの適用 | |
- (void)configureCell:(UITableViewCell *)cell atIndexPath:(NSIndexPath *)indexPath; | |
@end |
This file contains hidden or 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
// Armor.h | |
@interface Armor : PFObject<PFSubclassing> | |
+ (NSString *)parseClassName; | |
@end | |
// Armor.m | |
// Import this header to let Armor know that PFObject privately provides most | |
// of the methods for PFSubclassing. | |
#import <Parse/PFObject+Subclass.h> |
This file contains hidden or 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
Pod::Spec.new do |s| | |
s.name = 'RBStoryboardLink' | |
s.version = '0.0.6' | |
s.summary = 'Makes transitioning between storyboards possible.' | |
s.homepage = 'https://github.com/rob-brown/RBStoryboardLink' | |
s.license = { | |
:type => 'MIT', | |
:file => 'LICENSE' | |
} | |
s.author = 'Robert Brown' |
This file contains hidden or 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
;(function(global, $, undefined) { | |
'use strict'; | |
// globalはwindowだということを期待している | |
global.App = global.App || {}; | |
var App = global.App; | |
// […] | |
}(this, jQuery)); |
This file contains hidden or 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
# coding: utf-8 | |
PARSE_API_BASE = 'https://api.parse.com' | |
PARSE_PUSH_API = '/1/push' | |
PARSE_PUSH_URL = PARSE_API_BASE + PARSE_PUSH_API | |
# Push Notificationに必要なKeyをHTTP Headerで指定 | |
HEADERS = { | |
"X-Parse-Application-Id": "<Application ID>", | |
"X-Parse-REST-API-Key": "<REST API Key>", | |
"X-Parse-Master-Key": "<Master Key>", |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
@interface MyURLProtocol : NSURLProtocol | |
@end |
#UITableViewController vs UIViewController
__Storyboard__や__Interface builder__を使う場合の話
UITableViewController
は、UIViewController
のサブクラス- table viewの扱いに最適化され、追加機能もある
##具体例
__table cell__に__text field__があり、__text field__をタップした時にキーボードが立ち上がる。