macOS/iOS API解説

iOS , Mac アプリケーション開発のために使われる主要フレームワークの日本語情報です。2010年代に書かれた内容です。今後更新はありません。

目次

integerValue

レシーバーのNSInteger値を返します

解説

レシーバーのNSInteger値を返します。
セルの値がスキャンできない場合は0を返します。

返り値

( NSInteger )

整数値

引数

フレームワーク

ApplicationKit

クラス

NSCell

使用可能

10.5

参照

-setIntegerValue:
-intValue

例文

#import "MyObject.h"

@implementation MyObject

- (IBAction)myAction:(id)sender
{

[bCell1 setIntegerValue:12345];
//bCell1はテキストフィールドセル

NSLog([NSString stringWithFormat:@"%d",[bCell1 integerValue]]);

}

@end