これからはcocos2d-xを使ってゲームを作っていきます。 目標は プラント vs ゾンビ (https://itunes.apple.com/jp/app/plants-vs.-zombies/id350642635?mt=8) のような奇麗なアニメーションでキャラクターが動くパズルゲームを作れたらと思います。道のりは…
UITextFieldにてインデントを設定するときのメモです。 // UITextFieldを作成 UITextField* textField = (UITextField *)[hogeView viewWithTag:1234]; textField.background = [UIImage imageNamed:@"hogehoge.png"]; // インデントを作成 UIView* spacerVi…
ネイティブでhtml・jqueryファイルを用意して、UIWebViewに表示するときのメモです。 (環境:xcode5, iOS7) // js・cssファイルを読み込む NSString* filePath1 = [[NSBundle mainBundle] pathForResource:@"jquery-ui" ofType:@"js"]; NSString *filePath…
UIViewController(B)のViewを透明にして、UIViewController(A)が見えるようにしたいときのメモです。 (xcode5, iOS7)iOS8はこちら(http://tsuyushiga.hatenablog.jp/entry/2014/12/10/211447) イメージ modalPresentationStyleをUIModalPresentationCurr…
CorePlotライブラリを使った時に各パイの色を変えたい時のメモです。 (環境:xcode5, iOS7) -(CPTFill *)sliceFillForPieChart:(CPTPieChart *)pieChart〜メソッドを、円グラフを表示したいViewControllerクラスで実装します。 -(CPTFill *)sliceFillForPieCh…
UITextViewにインデントを設定する。 (環境:xcode5, iOS7) UITextView* textView = [UITextView alloc] initWithFrame:CGRectMake(0.0, 0.0, self.view.frame.size.width, 100.0)]; [textView setTextContainerInset:UIEdgeInsetsMake(20.0, 20.0, 0.0, 20.0…
TwitterのプロフィールページをiPhoneアプリから呼び出す方法。 (環境:xcode5, iOS7)・Webブラウザで呼び出す場合 NSURL *url = [NSURL URLWithString:@"https://twitter.com/プロフィール名"]; ・公式アプリで呼び出す場合 NSURL *twitterAppURL = [NSURL U…