#import <AFNetworking/AFNetworking.h> @interface ViewController () @property (nonatomic, strong) NSArray *responseData; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; AFHTTPRequestOperationManager *manager = [AFHTTPRequestOperationManag</afnetworking/afnetworking.h>…
簡単でいいね!! // 読み込み #import <SVProgressHUD/SVProgressHUD.h> // ローディングを表示する [SVProgressHUD showWithMaskType:SVProgressHUDMaskTypeBlack]; // 閉じる [SVProgressHUD dismiss];</svprogresshud/svprogresshud.h>
NSLog(@"size: %d", [responseObject count]);
#import "AppDelegate.h" #import "ViewController.h" @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWindow alloc] initWithFrame:[[U…
// 何行あるか - (NSInteger)tableView:(UITableView *)table numberOfRowsInSection:(NSInteger)section { return [self.responseData count]; } // それぞれのセルの内容 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:…
掴んで左側のエリアにぽいっとするだけ。いちいち右クリックとかしなくておk!
#import "ViewController.h" @interface ViewController () @property (nonatomic, strong) UILabel *label; @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; CGRect rect = CGRectMake(10, 10, 100, 100); self.label = […
setterとgetter(アクセッサメソッド)をコンパイルの前に生成させる。以上。 http://d.hatena.ne.jp/nakamura001/20101101/1288632739 https://gist.github.com/wneko/1358266
- (void)viewDidLoad { [super viewDidLoad]; UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect]; button.frame = CGRectMake(50, 50, 100, 30); [button setTitle:@"click" forState:UIControlStateNormal]; [button addTarget:self a…
- (void)viewDidLoad { [super viewDidLoad]; CGRect rect = CGRectMake(10, 10, 100, 100); UILabel *label = [[UILabel alloc] initWithFrame:rect]; label.text = @"start"; [self.view addSubview:label]; }
閉じたいボタンに対して、 - (IBAction)back:(UIButton *)sender { [[self presentingViewController] dismissViewControllerAnimated:YES completion:NULL]; }
この辺でなおる。 Window > Organaizer > Projects > Derived Data > Delete シミュレータを一度終了する
#import "AppDelegate.h" @implementation AppDelegate - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Override point for customization after application launch. return YES; }