Monday, 15 April 2013

objective c - Calling methods in ObjC -


I have 8 methods in my application, and everyone is calling the same method - (zero) some functions, <

/ P

All suggestions are appreciated.

Thanks

Div>

One way is for some functions Adding the int parameter and calling method itself can be identified with a unique value.

  - (zero) some function: (int caller id {// switch or if here STMT based on column ID}  

Then calling method A will call function function with callerId 1, callerId2, and some more function call etc.


No comments:

Post a Comment