Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
UIlabel に表示される文字の総数を検出する方法はありますか。uilabels テキストは NSString からのものです。uilabel はアウトレットです。ヘルプと例をいただければ幸いです。
yourOutletName.text.length文字の総数を示します。
yourOutletName.text.length
これも使えます
NSString *myString=@"Sample"; NSUInteger characterCount = [myString length];