DNB5brims
DNB5brims

Reputation: 30568

Can NSClassFromString use in App Store?

Seems the NSClassFromString can create object on the fly based on the String, so, if I use the performSelector and pass another string, I can call almost all the method on the fly...Is this violate the App Store guideline and being rejected? Thanks.

Upvotes: 0

Views: 408

Answers (3)

Nikos M.
Nikos M.

Reputation: 13783

For creating your own objects yes you can. It is officially documented so, as long as you do not use it to call private apis, you are free to use it.

Upvotes: 0

Leijonien
Leijonien

Reputation: 1413

The mechanism is totally legitimate. Just don't use it for private api calls.

Upvotes: 1

Wain
Wain

Reputation: 119031

It only violates the guidelines if you use it to access private Apple API. If you're using it for your API, public API, optional API content then it's fine.

Upvotes: 1

Related Questions