FBProfilePictureView
คลาสนี้ไม่มีให้ใช้งานใน SDK เวอร์ชั่นล่าสุดอีกต่อไป
เวอร์ชั่นที่ใหม่กว่าของคลาสนี้พร้อมแล้ว ตรวจสอบได้ เวอร์ชั่นล่าสุด

An instance of FBProfilePictureView is used to display a profile picture.

The default behavior of this control is to center the profile picture in the view and shrinks it, if necessary, to the view's bounds, preserving the aspect ratio. The smallest possible image is downloaded to ensure that scaling up never happens. Resizing the view may result in a different size of the image being loaded. Canonical image sizes are documented in the "Pictures" section of https://developers.facebook.com/docs/reference/api.

Inherits from:UIView
Declared in:FBProfilePictureView.h
ทรัพย์สิน
pictureCropping

The cropping to use for the profile picture.

@property (nonatomic) FBProfilePictureCropping pictureCropping;
ให้คำรับรองไว้ใน: FBProfilePictureView.h
profileID

The Facebook ID of the user, place or object for which a picture should be fetched and displayed.

@property (copy, nonatomic) NSString *profileID;
ให้คำรับรองไว้ใน: FBProfilePictureView.h
วิธีการทันใจ
init

Initializes and returns a profile view object.

- (instancetype) init;
ให้คำรับรองไว้ใน: FBProfilePictureView.h
initWithProfileID:pictureCropping:

Initializes and returns a profile view object for the given Facebook ID and cropping.

พารามิเตอร์คำอธิบาย
profileID

The Facebook ID of the user, place or object for which a picture should be fetched and displayed.

pictureCropping

The cropping to use for the profile picture.

- (instancetype)
initWithProfileID: (NSString *)profileID
pictureCropping: (FBProfilePictureCropping)pictureCropping;
ให้คำรับรองไว้ใน: FBProfilePictureView.h
Typedefs
FBProfilePictureCropping enum

Type used to specify the cropping treatment of the profile picture.

typedef enum {
FBProfilePictureCroppingSquare = 0,
FBProfilePictureCroppingOriginal = 1
} FBProfilePictureCropping;
ค่าคงตัวคำอธิบาย
FBProfilePictureCroppingSquare

Square (default) - the square version that the Facebook user defined.

FBProfilePictureCroppingOriginal

Original - the original profile picture, as uploaded.

ให้คำรับรองไว้ใน: FBProfilePictureView.h