macOS/iOS API解説

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

目次

NSTextCheckingResultクラス

INDEX>Foundation>NSTextCheckingResult

解説

継承 NSObject
準拠 NSCoding
NSCopying
NSObject (NSObject)
フレームワーク /System/Library/Frameworks/Foundation.framework
使用可能 OS X 10.6以降
iOS 4.0以降
定義 NSTextCheckingResult.h

概要

メソッド

テキストチェックの範囲とタイプ

range property
resultType property
numberOfRanges property
– rangeAtIndex

テキストチェックの置換結果

+ replacementCheckingResultWithRange:replacementString
replacementString property

テキストチェックの結果コンポーネント

components property

URLのテキストチェック

+ linkCheckingResultWithRange:URL
URL property

アドレスのテキストチェックの結果

+ addressCheckingResultWithRange:components
addressComponents property

変換情報のテキストチェック結果

+ transitInformationCheckingResultWithRange:components

電話番号のテキストチェックの結果

+ phoneNumberCheckingResultWithRange:phoneNumber
phoneNumber property

日付と時間のテキストチェックの結果

+ dateCheckingResultWithRange:date
+ dateCheckingResultWithRange:date:timeZone:duration
date property
duration property
timeZone property

綴りのチェック結果

+ orthographyCheckingResultWithRange:orthography
orthography property

文法のテキストチェックの結果

+ grammarCheckingResultWithRange:details
grammarDetails property

テキストチェック結果の適用範囲

– resultByAdjustingRangesWithOffset

定数

サブクラス化の注意