2014-03-02から1日間の記事一覧
iOSでボタンに画像を指定する時のメモ。 - (void)viewDidLoad { [super viewDidLoad]; //ボタンのインスタンスを作成する UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; //ボタンに使用する画像を指定する [button setImage:[UIImage i…
iOSでボタンに画像を指定する時のメモ。 - (void)viewDidLoad { [super viewDidLoad]; //ボタンのインスタンスを作成する UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom]; //ボタンに使用する画像を指定する [button setImage:[UIImage i…