【问题标题】:MGTwitterEngine getting feeds - iPhoneMGTwitterEngine 获取源 - iPhone
【发布时间】:2012-10-26 19:46:11
【问题描述】:

因此,在我的应用程序中,我尝试使用 MGTwitterEngine 从 Twitter 上的某个用户那里读取数据,然后将最近的帖子记录在一个数组中。这个库可以做到这一点吗?我正在尝试在不登录的情况下执行此操作。任何帮助将不胜感激,谢谢!

【问题讨论】:

    标签: iphone twitter


    【解决方案1】:

    使用MGTwitterEngine 可以轻松完成。你这样做:

    MGTwitterEngine *twitterng = [[MGTwitterEngine alloc] initWithDelegate:self];
    [twitterng getUserTimelineFor:@"userName" sinceID:0 startingAtPage:0 count:8];
    

    它会调用委托方法

    - (void)statusesReceived:(NSArray *)statuses forRequest:(NSString *)connectionIdentifier
    

    希望这会有所帮助。

    【讨论】:

      【解决方案2】:

      您需要获取包含 rss 提要的提要 url。您无需为此登录。使用 MGTwitterEngine 获取推文并将它们设置为数组。然后你只需要重新加载 tableview。

      希望这会有所帮助。

      谢谢,

      马杜普

      【讨论】:

        猜你喜欢
        • 2010-11-14
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2010-11-09
        • 2011-05-27
        • 2011-07-20
        • 2011-09-14
        相关资源
        最近更新 更多