Reputation: 33428
Could you explain me the following attributes?
1) [MonoTouch.Foundation.Register("SomeClass")]
Is this attribute is used only for register classes with IB? Do I have to use this class when I extend an iOS class programatically?
2) [Export("initSomething")]
When do I have to use this attribute? For selector, ok. Anything else?
Thanks you in advance.
Upvotes: 3
Views: 478
Reputation: 32694
The attribute on a class exposes the class to the Objective-C world. You need that if you want to call methods in that class. The name passed to register will be the name that the Objective-C world uses for your class.
Export is used to expose a single method or property to that world.
Upvotes: 3