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];

1 comment
Comment actions Permalink

"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.

0

Please sign in to leave a comment.