UITextViewでユーザーに入力してほしいから領域を示すために画像を周りを線で囲いたいことがある。
//1. まずQuartzCore.frameworkを使用する
// 2. つぎにFirstViewContorller.mとか使用したいmファイルでQuartzCoreをimport
// 3. あとは使用したいところに以下のように指定する
self.text.layer.borderColor = [UIColor grayColor].CGColor;
self.text.layer.borderWidth = 1.0;
self.text.layer.cornerRadius = 4.0;
No comments:
Post a Comment