草庐IT

ios - iPhone SDK : GameKit and large files + connection lost

一段时间以来我一直在玩GameKit,但现在我面临着非常严重的困难。我要通过蓝牙发送更大的文件-1-2MB。我已经准备好了一个数据包(每个大约8kB)。我的应用按照以下方案中的描述工作:iPhone-sendingheader:filedividedinto25partsiPod-receivedheader:OKIgotitwaitingfor25partsiPhone-sendingpart#1iPod-receivedpart#1sendnextiPhone-sendingpart#2iPod-receivedpart#2sendnext...iPhone-sendingpart

iPhone SDK : Pushed view controller does not appear

我想为我的UITableView中的其中一个单元格添加详细View。我创建了一个新的ViewControllerSyncDetailViewController)和一个用于详细View的NIB。新类(class)没有太多变化。刚刚为它添加了一个标签和socket,并将nib连接到ViewController。现在我已经将此代码添加到我的ViewController(带有UITableView的那个,而不是新的那个)-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)indexPath

ios - Xcode iPhone SDK - 上传文件

我想将文件上传到网站(在本例中为MediaFire)到目前为止我得到的非工作代码:NSString*File2upload=@"Documents/data.xml";NSURL*url=[NSURLURLWithString:@"http://username@hotmail.com:password@mediafire.com/data.xml"];[File2uploadwriteToURL:urlatomically:YESencoding:NSUTF8StringEncodingerror:NULL]; 最佳答案 与其忽略

iphone - Xcode 4.2 上的 ios SDK 4.3?

我已经使用iOSSDK5升级到Xcode4.2Beta,然而,尽管目标设置为4.0,但结果发现使用SDK5构建的应用程序不被应用程序商店接受。既然sdk4.3好像是随Xcode4一起下载的,但我还是想保留较新的Xcode,请问如何在Xcode4.2中导入SDK4.3?(我尝试用SDK4.3重新安装Xcode4,但失败了很多崩溃和错误。我也在iTune10.5上。) 最佳答案 除了Xcode4.2beta之外,您还应该能够安装Xcode4.0(发行版)。尝试删除两者的目录,然后重新安装...由于NDA,我们不能真正谈论4.2,请尝试在

ios - 使用适用于 iOS 的 Facebook SDK 3.0 检索 Facebook 好友的家乡和位置以及生日

我正在尝试使用适用于iOS的FBSDK获取我friend的家乡和位置。但我无法检索friend的位置和家乡。这是我的代码-(IBAction)btnFBLoginTapped:(id)sender{NSArray*permissions=[[NSArrayalloc]initWithObjects:@"email",@"user_birthday",@"user_hometown",@"user_location",@"friends_birthday",@"friends_location",@"friends_hometown",nil];[FBSessionopenActiveS

iPhone SDK :NSScanner crashing randomly

我有一个应用程序可以扫描网站上的文本,以便获取信息并将其放入我的应用程序中。所以在这种情况下,我正在检索用户在Facebook上的通知数量。除了应用程序随机崩溃外,一切正常。这是我在文本中搜索数字的代码:NSScanner*theScanner=[NSScannerscannerWithString:facebookTextF];NSScanner*theScanner2=[NSScannerscannerWithString:facebookTextFa];[theScannerscanUpToString:@"Notifications"intoString:&facebookTe

ios - 我可以使用多个自定义 URL Scheme 来使用 Facebook iOS SDK 进行身份验证吗

阅读文档后,它指出:AddingyourFacebookAppIDFinally,youneedtoplacetheFacebookappIDintwoplacesinyourapplication'smain.plistfile.CreateakeycalledFacebookAppIDwithastringvalue,andaddtheappIDthere:Also,createanarraykeycalledURLtypeswithasinglearraysub-itemcalledURLSchemes.GivethisasingleitemwithyourappIDprefix

ios - 实现 Admob Mediation SDK 而不是标准 Admob SDK

我已经在我的应用程序中成功实现了标准的独立AdmobSDK并且运行良好。但现在,我想实现AdmobMediationSDK。我也想知道它们之间的区别是什么?如何实现Admob中介SDK?谢谢,.... 最佳答案 没有不同的SDK,中介广告和非中介广告都使用相同的SDK。但是,中介广告会有不同的AdmobID。调解是您需要在Admob帐户中启用的设置。请参阅:https://developers.google.com/mobile-ads-sdk/docs/admob/mediation有关如何启用调解的详细说明中介只是让您控制广告网

iphone - 防止在iphone sdk中从uiimage拉伸(stretch)图像

代码片段self.newsImage=[[UIImageViewalloc]initWithFrame:CGRectMake(0,0,300,130)];//setplaceholderimageorcellwon'tupdatewhenimageisloadedself.newsImage.image=[UIImageimageNamed:@"newsDetail.png"];//loadtheimageself.newsImage.imageURL=[NSURLURLWithString:imageBig];[imageBackaddSubview:self.newsImage];

ios - 用于 iOS 的 Box.com SDK : Checking authorization status

适用于iOS的box.comSDK有一个名为sharedSDK的对象,该对象包含另一个名为OAuth2Session的对象。OAuth2Session有一个名为isAuthorized的属性。在每次启动应用程序时,此属性都设置为NO。即使我将refreshToken保留在系统钥匙串(keychain)中,并在启动时分配它,如下所示://...applicationDidFinisLaunching...NSString*token=[controllerObjectfetchFromKeychainForKey:@"com.box.token"];[BoxSDKsharedSDK].O