textField.layer.cornerRadius = 5.0 需要导入框架QuartzCore.framework, 并且在当前类中引用#import<QuartzCore/QuartzCore.h>