handleFailureInMethod:object:file:lineNumber:description:
INDEX>Foundation>NSAssertionHandler
セレクタを含むエラーメッセージを表示します
-(void)handleFailureInMethod:(SEL)selector: object:(id)object: file:(NSString *)fileName: lineNumber:(int)line: description:(NSString *)format,...:
解説
セレクタを含むエラーメッセージを表示します。
返り値
( void )
なし
引数
( SEL )selector
( id )object
オブジェクト
( NSString * )fileName
ファイル名
( int )line
行番号
( NSString * )format,...
フォーマット
フレームワーク
Foundation
クラス
NSAssertionHandler
Instance Methods
使用可能
10.0
iOS2.0
参照
例文
#import "MyObject.h" @implementation MyObject - (IBAction)myAction:(id)sender { NSAssertionHandler *aHandler = [NSAssertionHandler currentHandler]; [aHandler handleFailureInFunction:@"kansuu" file:@"filename" lineNumber: 10 description:@"%@",@"setumei"]; } @end