The first thing that comes to mind is to use @property and dot-notation. A class with @property called 'foo' allows you to do this:
anInstance.foo = @"bar";
which literally translates at compile time
[anInstance setFoo:@"bar"];
(similar to "getters")
Other methods are more advanced, for example, using NSObject performSelector: method or other systems such as NSInvocation, etc. Going deeper, there are ways to call methods at runtime with c functions (all this syntax ultimately boils down to calling c functions); but I'm sure that is not what you need.
source share