FBProfilePictureView object won't show image

前端 未结 7 1410
别跟我提以往
别跟我提以往 2020-12-18 22:34

I\'m doing the scrumptios facebook developer tutorial for the 3.1 iOS SDK. I\'ve managed to display my profile name from facebook, however the FBProfilePictureView wont show

7条回答
  •  离开以前
    2020-12-18 23:18

    Adding the [FBProfilePictureView class]; as the first line in the app delegate method of didFinishLaunching seems kinda hacky to me.

    Check out the HelloFacebookSample inside the SDK. Here is the 4 line comment:

    // If you have not added the -ObjC linker flag, you may need to uncomment the following line because
    // Nib files require the type to have been loaded before they can do the wireup successfully.
    // http://stackoverflow.com/questions/1725881/unknown-class-myclass-in-interface-builder-file-error-at-runtime
    // [FBProfilePictureView class];
    

    I tried adding the -ObjC flag and it worked fine.

提交回复
热议问题