So you created a delegate class and you defined some delegate methods in it. Now when you run your code.You may get following warning as a result of not implementing all the delegate methods in your implementation file. This article can help.
WARNING: iPhone class * does not fully implement the * protocol.
The solution is to use @optional as shown below.
Ok one more thing when you call optional delegate method in your code ,make sure it has been implemented by user.
if([delegate respondsToSelector:@selector(colorsForPie)])
{
colorsArray_=[delegate colorsForPie];
}
No comments:
Post a Comment