iOS
.xcodeprojでHeader Search Pathsを追加する時に便利なもの自身のルートパスに使えるやつ$(SRCROOT)使用例"$(SRCROOT)/AdditionalHeaderPath/PathToHeader"
シンプルにUIViewのanimationWithDurationで UIView *AnimateTargetView = [[UIView alloc]initWithFrame:CGRectMake(0, 0, 50, 50)]; [UIView animateWithDuration:1.5f animations:^{ [AnimateTargetView setFrame:CGRectMake(20, 20 , 100 , 100)]; }];
Build Phases -> CompileSources -> Compiler Flags に下記オプションを追加 -fobjc-arc
いんぽーと #import "GDataXMLNode.h" dataはNSDataとして ルートノードを取得 NSError *error; GDataXMLDocument *doc = [[GDataXMLDocument alloc]initWithData:data options:0 error:&error]; GDataXMLElement *rootNode = [doc rootElement];linkとtitle…
UIViewControllerのロード時に呼ばれるこいつら - (void)viewWillAppear:(BOOL)animated {- (void)viewDidLoadどっちが先に呼ばれるかよく忘れるのでメモviewDidLoadが先
Githubから落として https://github.com/coneybeare/UAModalPanelファイルをコピーimportして #import "UAModalPanel.h" #import "UAExampleModalPanel.h"表示する UAModalPanel *modalPanel = [[[UAExampleModalPanel alloc] initWithFrame:self.view.bound…
よく忘れるのでメモ うっかり画面遷移して戻ったら解除し忘れてたってよくあるよね(・ω [tableView deselectRowAtIndexPath:[tableView indexPathForSelectedRow] animated:YES];
空き容量足りないぞ キェェェェ!って警告が出た時はシミュレータのファイルを削除しましょう 以下のディレクトリの古いのを削除5.0,5.1.1ってあったら5.0は削除しても特段支障はないと思います。使ったのはDiskInventoryX http://www.derlien.com/
XCode 4.6系からシミュレータで縞模様が出るようになってた (4.5系で出てなかったソースで)消す場合はbackgroundViewをいじる .backgroundView = nil;
iAdの更新周期についてiTunesConnectの右下にあるこれこのiAdの集計は2時間おきに更新してるみたい。 (偶数の時間)正確な時間はちゃんと測ったりできないからワカンナイ
18歳以上向けのAdに設定 ↓ 広告が1種類しか出ない上にFill Rateが良くない ↓ やっぱり変更しよう ↓ 後からは変えられないんだった オワタ\(^o^)/となるのでiAdの初期設定は慎重に
Appleの審査で3.2で弾かれた場合 We found that your app and/or its metadata does not appear to include final content, which is not in compliance with the App Store Review Guidelines. Specifically, your app contains placeholder text in the Ap…
Appleの審査で 10.6 - Did not include iOS features. For example, it would be appropriate to use native iOS buttons and iOS features other than just web views, Push Notifications, or sharing.でリジェクトされた場合はUIに原因がある場合が考えれ…
QuartzCore.frameworkをBuildSettingで追加してimport #import <QuartzCore/QuartzCore.h>とりあえずalloc UIButton *XButton = [[UIButton alloc]initWithFrame:CGRectMake(10, 10, 40, 40)];背景を黒に [XButton setBackgroundColor:[UIColor blackColor]];ボタンの外枠を白で描画 [</quartzcore/quartzcore.h>…
NSTimerを止めてEXC_BAD_ACCESSになることがある 対処法はnil代入タイマの部分 TestTimer = [NSTimer scheduledTimerWithTimeInterval:1.0f target:self selector:@selector(HogeHoge) userInfo:nil repeats:YES];invalidateで止めてからnil代入 -(void)Hoge…
てきとーに書いてきますViewControllerでdelegate @interface MainViewController : UIViewController
三ヶ月前の古いメモを書き起こしてるんで不正確かも わからなかったり引っかかったりしたらおググりになって下さい。 [1]iOS DevのOverviewを開く (https://developer.apple.com/ios/manage/overview/index.action) [2]App IDsを開く(https://developer.a…