see also.
オレオレUIViewControllerコーディングガイドライン オレオレUIViewコーディングガイドライン
ここで述べるターゲットはiOS5, Lion以降, ARC
see also.
オレオレUIViewControllerコーディングガイドライン オレオレUIViewコーディングガイドライン
ここで述べるターゲットはiOS5, Lion以降, ARC
#import <Twitter/Twitter.h> | |
#import <Social/Social.h> | |
// TWTweetComposeViewControllerの場合 (for iOS5) | |
- (IBAction)tweet:(id)sender | |
{ | |
if ([TWTweetComposeViewController canSendTweet]) { | |
// ツイート用の画面をを表示する | |
TWTweetComposeViewController* composeViewController = [[TWTweetComposeViewController alloc] init]; | |
[composeViewController setInitialText:@"Hello World!"]; |
# (File moved to https://github.com/ole/Storyboard-Strings-Extraction) |
従来の CVCS (集中バージョン管理システム)のリビジョン番号は連番。 SVN はサーバーにデプロイした時点でリビジョン番号1と設定される。
#import <UIKit/UIKit.h> | |
#import "AppDelegate.h" | |
int main(int argc, char * argv[]) | |
{ | |
@autoreleasepool { | |
[[NSUserDefaults standardUserDefaults] setBool:NO forKey:@"UIDisableLegacyTextView"]; | |
return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); |
iOS5以前,View Controllers Containersはappleの特権だった。実際、View Controller Programming Guideにはそれらを使うべきではない旨の記述があった。 かつてView ControllerについてのAppleからの一般的はアドバイスは「1つのview controller は1つの画面の内容を管理する。」だった。 これはそれから「1つのView controllerは自分に含まれるユニットの内容を管理する」に変更された。 Why didn’t Apple want us to build our own tab bar controllers and navigation controllers? (なぜアップルは独自のtab bar controllersやnavigation controllersをbuildさせたくなかったのだろうか?) 具体的に、次の問題はなんだろう
[viewControllerA.view addSubView:viewControllerB.view]
#import "NSObject+CustomMethod.h" | |
typedef void(^SelectorBlock)(NSObject *responder); | |
@implementation NSObject (CustomMethod) | |
#pragma mark associative storage | |
- (NSObject *)spi_nextResponder | |
{ | |
NSObject *ao = objc_getAssociatedObject(self, _cmd); | |
if (ao) { |
#!/usr/bin/env bash | |
# Automatically installs swiftenv and run's swiftenv install. | |
# This script was designed for usage in CI systems. | |
git clone --depth 1 https://github.com/kylef/swiftenv.git ~/.swiftenv | |
export SWIFTENV_ROOT="$HOME/.swiftenv" | |
export PATH="$SWIFTENV_ROOT/bin:$SWIFTENV_ROOT/shims:$PATH" | |
if [ -f ".swift-version" ] || [ -n "$SWIFT_VERSION" ]; then | |
swiftenv install -s |