iOS SDK Version

FBSDKProfilePictureView

@interfaceFBSDKProfilePictureView:UIView
A view to display a profile picture.
  • Create a new instance of FBSDKProfilePictureView.

    Declaration

    Objective-C
    -(nonnullinstancetype)initWithFrame:(CGRect)frameprofile:(FBSDKProfile*_Nullable)profile;
    Swift
    init(frame:CGRect,profile:FBSDKProfile?)
  • Create a new instance of FBSDKProfilePictureView.

    Declaration

    Objective-C
    -(nonnullinstancetype)initWithProfile:(FBSDKProfile*_Nullable)profile;
    Swift
    init(profile:FBSDKProfile?)
  • The mode for the receiver to determine the aspect ratio of the source image.

    Declaration

    Objective-C
    @property(nonatomic,assign,unsafe_unretained,readwrite)FBSDKProfilePictureModepictureMode;
  • The profile ID to show the picture for.

    Declaration

    Objective-C
    @property(nonatomic,copy,readwrite)NSString*_NonnullprofileID;
    Swift
    varprofileID:String{getset}
  • Explicitly marks the receiver as needing to update the image.
    This method is called whenever any properties that affect the source image are modified, but this can also be used to trigger a manual update of the image if it needs to be re-downloaded.

    Declaration

    Objective-C
    -(void)setNeedsImageUpdate;
    Swift
    funcsetNeedsImageUpdate()