Copy from Mac OS X does not copy to iPhone Simulator

前端 未结 9 547
夕颜
夕颜 2021-01-30 12:02

In my iPhone app, I have many ASCII arts which I need to insert into the database.

I am using the simulator and pasting the textpic in the textview to insert the ASCII a

9条回答
  •  无人共我
    2021-01-30 12:44

    Check out the text property of the UITextView. Simply load your textpic into an NSString, and set that string to be the text property of the TextView.

    http://developer.apple.com/library/ios/#documentation/uikit/reference/UITextView_Class/Reference/UITextView.html%23//apple_ref/occ/instp/UITextView/text

提交回复
热议问题