They are both the same. You can use either of the style of the code. It is called as property. A property has both getter and setter.
For me,
For property, I will use self.myProperty.
When it is a method, I will use [self myMethod];
It is really depends on your programming style.