¡@

Home 

2014/10/15 ¤U¤È 10:11:10

iphone Programming Glossary: loginservicedelegate

Best way to use RestKit in an iPhone Application

http://stackoverflow.com/questions/5661842/best-way-to-use-restkit-in-an-iphone-application

What I am thinking of is the following. I will have a LoginService which will login the user. There will be protocol LoginServiceDelegate which has two methods for success and failure. And the Controller can implement the LoginServiceDelegate and call the login.. be protocol LoginServiceDelegate which has two methods for success and failure. And the Controller can implement the LoginServiceDelegate and call the login Method in LoginService and get a success or failure callback. However to do this I will need some way.. RestKit does not allow me to do this and the only way I am able to do this by initializing the LoginService with a LoginServiceDelegate storing that delegate as a property and calling the appropriate method in the delegate on successful login or failure. This..