我正在使用用户ID设置FBProfilePictureView,但这需要一段时间,所以我想知道是否有什么指示加载完成的时间,因此我可以显示一个ActivityIndicator
You should take a look at SDWebImage librabry , you will be able to put a placeholder while loading your picture or add a progress indicator. I think everything you need is there. Hope it helps.
There is no delegate or something similar in FBProfilePictureView that indicates when the image finished loading. Looking at the source code ( https://github.com/facebook/facebook-ios-sdk/blob/master/src/UI/FBProfilePictureView.m ) it seems like it should be fairly easy to fork the repo and add a few changes to notify you when the HTTP request has finished.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.