【问题标题】:why can't I access .layer.borderWidth for this UITextView instance? (code attached)为什么我不能访问这个 UITextView 实例的 .layer.borderWidth ? (附代码)
【发布时间】:2011-08-01 03:15:52
【问题描述】:

为什么我不能访问这个 UITextView 实例的 .layer.borderWidth ? (附代码)

UITextView *v = (UITextView*)[self.view viewWithTag:1];
v.layer.borderWidth = 1;  // ERROR Accessing unknown 'borderWidth' component of a property

【问题讨论】:

    标签: iphone ios uitextview layer


    【解决方案1】:

    你需要#import <QuartzCore/QuartzCore.h>

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-11-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多