【问题标题】:XMPPFramework for Objective-C. How to implement such setphoto method用于 Objective-C 的 XMPPFramework。如何实现这样的setphoto方法
【发布时间】:2013-09-10 15:19:25
【问题描述】:
/**
 * When XMPPvCardAvatarModule is included in the framework, the roster will integrate    with it.
 * Implement this method to provide support for storing the downloaded user photos.
**/
#if TARGET_OS_IPHONE
- (void)setPhoto:(UIImage *)image forUserWithJID:(XMPPJID *)jid xmppStream:(XMPPStream    *)stream;
#else
- (void)setPhoto:(NSImage *)image forUserWithJID:(XMPPJID *)jid xmppStream:(XMPPStream    *)stream;
#endif

在 XMPPFramework 中,我有这样的评论,告诉我实现一些方法来存储用户照片。我应该如何实现这个方法?

【问题讨论】:

    标签: objective-c methods xmppframework


    【解决方案1】:

    我明白了。我没有vCard,所以我不能上传照片。

    如果 vCard 可用,此方法可以正常工作。

    【讨论】:

      猜你喜欢
      • 2017-10-24
      • 1970-01-01
      • 2018-10-15
      • 1970-01-01
      • 2012-02-29
      • 1970-01-01
      • 1970-01-01
      • 2011-02-23
      • 1970-01-01
      相关资源
      最近更新 更多