i am trying to integrate the AFNetworking class for UIButton (i am calling a profile page and am loading in the avatar for the user async'd).
https://gist.github.com/dpettigrew/2925847
Xcode error: -[UIRoundedRectButton setImageWithURL:placeholderImage:forState:]: unrecognized selector sent to instance 0xd2431a0
I tried to follow this example (https://github.com/luisespinoza/ActivityIndicatorImageURL) and i'm getting the same error on the UIImageView too.
I verified that all the files are copied into xcode and including in the build phases area. The thing that doesn't make sense though, is when i hold command and click the method, where i'm calling it, it jumps to the right method no problem. Any ideas? how do i get xcode to find the method on run time?
self->avatar
is the UIButton linked via an IBOutlet in my storyboard.
UIImage *imageTemp = [UIImage imageNamed:@"default_avatar.png"];
[self->avatar setImageWithURL:url placeholderImage:imageTemp forState:UIControlStateNormal];
Edit
Also note that i do have the following in my .h
#import "UIButton+AFNetworking.h"
#import "UIImageView+AFNetworking.h"