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.
メソッドを使用して追加UIImageViewしました。ここで、カーソル位置を変更して、位置の後に任意の文字列を入力し始めるようにします。UITextViewaddSubviewUIImageview
UIImageView
UITextView
addSubview
UIImageview
Custom UITextField についても同じことを行いました。
cursor=[[UIImageView alloc]initWithImage:[UIImage imageNamed:@"cursor.png"]]; CGFloat width = [myTextFied.text sizeWithFont:myTextFied.font].width; cursor.frame=CGRectMake(width+1, 7, 2, 20); [myTextFied addSubview:cursor];