小编Jon*_*own的帖子

将Facebook好友加载到UITableView中

我正在努力将Facebook集成到我的iOS应用程序中,并且想知道如何将Facebook好友加载到表格视图中,以便用户可以选择朋友邀请加入游戏,类似于在Words With Friends中完成的操作.

我知道[facebook requestWithGraphPath:@"me/friends" andDelegate:self]; 要求Facebook的朋友,但我无法确定从那里做什么.不知何故,我想得到朋友的ids,以便我可以给他们发消息.任何信息或建议将不胜感激.提前致谢

iphone facebook uitableview facebook-graph-api facebook-friends

7
推荐指数
1
解决办法
3994
查看次数

UIWebView帧加载中断

我们有在线存储的mp3文件,我们的iOS应用程序将它们加载到Web视图中.这在过去运行良好,但似乎最近(8.4?)它不再有效,而是因此错误而失败.

加载这些URL可以在Mobile Safari中使用,但不能在UIWebView中使用.如果有人能够对此有所了解,那将不胜感激!

谢谢!

mp3 uiwebview ios

7
推荐指数
1
解决办法
2963
查看次数

UITableView没有响应选择

我有一个UITableView我添加到UIView主视图内部.该表加载自定义单元格并加载数据并正确响应滚动,但didSelectRowAtIndexPath未被调用.如果我将表移动到其容器之外UIView,delegate则会调用该方法.

所以它只在容器视图内部时才起作用,但该视图有userInteractionEnable = YES,并且表响应滚动.该表也设置为单选.

知道为什么它不会回应选择吗?在此先感谢您的帮助

这是一些代码:

self.table.delegate = self;
self.table.dataSource = self;


- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

// Customize the number of rows in the table view.
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return [self.classNames count];
}

// Customize the appearance of table view cells.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath     *)indexPath
{
    static NSString *MyIdentifier = @"MyIdentifier";

    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:MyIdentifier];

    if(cell == nil)
    {
        [[NSBundle …
Run Code Online (Sandbox Code Playgroud)

iphone objective-c uitableview ios

4
推荐指数
1
解决办法
3088
查看次数