小编Ume*_*mar的帖子

我们可以邀请人们在iOS 5中使用我们的应用程序或通过Facebook从应用程序发送好友请求吗?

考虑XYFacebook的朋友,他们都在各自的手机中安装了一个应用程序.但他们在该应用的朋友列表中并不是彼此的朋友.那么现在,X 可以从应用程序本身向Y 发送朋友请求,以便他们可以成为应用程序朋友列表中的朋友吗?

另外在另一种情况下,X已经在他的手机中安装了这个应用程序,而Y却没有.再次,X 可以邀请 Y使用该应用吗?

它通过他们在Facebook注册的电子邮件ID跟踪人们.所以,找朋友是为了搜索" 已经是应用用户 ",他们不在应用的朋友列表中,但是在Facebook中是朋友,邀请朋友是为了邀请 Facebook中的朋友的应用的非用户.

我的问题是,这可能在iOS5即.没有使用仅在iOS6中引入的Facebook sdk

facebook objective-c facebook-graph-api ios5

14
推荐指数
1
解决办法
5097
查看次数

如何在iphone横向模式下删除UITableview滚动中的空白区域?

在我的tableview中,我已禁用纵向模式下的默认滚动.但是当方向更改为横向模式时,我已启用滚动,以便我可以查看表的整个内容.但是,滚动时,在tableview单元格之前和之后可以看到空白区域.那么,任何人都可以告诉我如何在横向模式下删除表格的默认滚动视图中的这个空白区域吗?我尝试过使用autoresizingmask,并尝试根据横向模式设置的内容大小.两者都不起作用,这是我的代码到目前为止.

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation

{

    // Return YES for supported orientations

    return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);

  }

-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation {

if((self.interfaceOrientation == UIDeviceOrientationLandscapeLeft) || (self.interfaceOrientation == UIDeviceOrientationLandscapeRight)){

        self.tableView.scrollEnabled = YES;

        self.tableView.sectionIndexMinimumDisplayRowCount =5;

       self.tableView.contentSize = CGSizeMake(480, 320);

        self.tableView.autoresizingMask = YES;

       //CGFloat cellHeight;}

    else if((self.interfaceOrientation == UIDeviceOrientationPortrait) || (self.interfaceOrientation == UIDeviceOrientationPortraitUpsideDown)){

        self.tableView.scrollEnabled = NO;

        }
  }
Run Code Online (Sandbox Code Playgroud)

iphone scroll landscape objective-c uitableview

2
推荐指数
1
解决办法
1075
查看次数

即使将.m类文件链接到Xcode中的构建阶段,Apple Mach-O链接器也会出现重复符号错误

当我构建并运行我的项目时,我得到的唯一错误,结果是Apple Mach-O链接器错误

架构i386的20个重复符号

链接器命令失败,退出代码为1(使用-v查看调用)

问题是我检查了项目中任何重复的类文件,图片,音频文件的存在(不是任何).我已将所有.m文件导入构建阶段 - >编译源.还有与二进制库链接导入的正确框架,并检查图片,xib,音频文件是否已在复制包资源中正确导入,到目前为止一切看起来都不错.但是,当我尝试运行项目时,链接器错误仍然存​​在.谁能告诉我哪里出错了?

 Ld /Users/User/Library/Developer/Xcode/DerivedData/Taukytable-bwphmaegucpyjhfinxfulunsuhag/Build/Products/Debug-iphonesimulator/Taukytable.app/Taukytable normal i386
        cd "/Users/User/Desktop/Taukytable Newone"
        setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
        setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/User/Library/Developer/Xcode/DerivedData/Taukytable-bwphmaegucpyjhfinxfulunsuhag/Build/Products/Debug-iphonesimulator -F/Users/User/Library/Developer/Xcode/DerivedData/Taukytable-bwphmaegucpyjhfinxfulunsuhag/Build/Products/Debug-iphonesimulator -filelist /Users/User/Library/Developer/Xcode/DerivedData/Taukytable-bwphmaegucpyjhfinxfulunsuhag/Build/Intermediates/Taukytable.build/Debug-iphonesimulator/Taukytable.build/Objects-normal/i386/Taukytable.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -stdlib=libc++ -mios-simulator-version-min=6.0 -framework CoreAudio -framework CoreMedia -framework CoreFoundation -framework Accelerate -framework CoreData -framework CoreVideo -framework Security -framework CoreImage -framework MessageUI -framework MobileCoreServices -framework AVFoundation -framework QuartzCore -framework SystemConfiguration -framework OpenGLES -framework AssetsLibrary -lsqlite3.0 -framework AudioToolbox -framework UIKit …
Run Code Online (Sandbox Code Playgroud)

xcode mach-o linker-errors objective-c++ ios6

2
推荐指数
1
解决办法
2886
查看次数