マクロ定数 擬似的に定数を宣言できる
[php]
#import "ViewController.h"
// #defineの定数定義
#define POINT 100
#define URL @"kdsoaa.co.jp"
@interface ViewController ()
@end
@implementation ViewController
– (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
NSLog(@"ポイントは %d, URLは %@",POINT, URL);
}
[/php]