DBProfileViewController icon indicating copy to clipboard operation
DBProfileViewController copied to clipboard

How to change avatar view size?

Open Jackson0111 opened this issue 9 years ago • 1 comments

I looked at a couple classes in DBProfileViewController, but couldn't figure out how the avatar view's frame was initially set. Is there a way to change the size of the view?

Jackson0111 avatar May 25 '16 20:05 Jackson0111

Never mind, I just found it. For other people who want to change avatarView size, here is the line where the size is defined:

in DBProfileAccessoryViewLayoutAttributes.m

static CGSize DBProfileAccessoryViewLayoutAttributesDefaultAvatarReferenceSize() { return CGSizeMake(0, 72); }

Jackson0111 avatar May 25 '16 22:05 Jackson0111