Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

To View ProfilePicture in Xcode of facebook user

When i am using

self.profilePic.profileID = user.id;

i end up with this error

-[UIView setProfileID:]: unrecognized selector sent to instance 0x69626f0
2012-09-11 09:49:50.535 TweetApp[992:c07] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIView setProfileID:]: unrecognized selector sent to instance 0x69626f0'

can anyone help on this topic??

like image 849
reji Avatar asked Sep 11 '12 04:09

reji


1 Answers

You can fix this issue simply. Just put this line code [FBProfilePictureView class]; at the first line of method application:didFinishLaunchingWithOptions:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
    [FBProfilePictureView class];
    //...
    return YES;
}
like image 191
Cao Huu Loc Avatar answered Sep 19 '22 16:09

Cao Huu Loc