Is there a way to always use dot notation?
I use dot notation, probably because I also do Android development via Android Studio. AppCode converts to bracket notation when I don't want it to. Is there any way to shut this off?
Let's say I type myLabel.textColor = UIColor.red I want it to complete to myLabel.textColor = UIColor.redColor; but I always get myLabel.textColor = [UILabel redColor];
请先登录再写评论。
"redColor" is not a property of UIColor class, it's a method. From Obj-C prespective you should use dot notation only for accessing properties of class.