Tag: ios11

不能用Twitter Kit 3撰写推文

我遵循https://dev.twitter.com/twitterkit/ios/compose-tweets的指令,通过iOS 11的Object C应用程序撰写推文 // Objective-C TWTRComposer *composer = [[TWTRComposer alloc] init]; [composer setText:@"just setting up my Twitter Kit"]; [composer setImage:[UIImage imageNamed:@"twitterkit"]]; // Called from a UIViewController [composer showFromViewController:self completion:^(TWTRComposerResult result) { if (result == TWTRComposerResultCancelled) { NSLog(@"Tweet composition cancelled"); } else { NSLog(@"Sending Tweet!"); } }]; 然而,点击[连接您的帐户]屏幕上的连接button后,它会转回应用程序,而无需撰写鸣叫(Twitter已经login)。 看来showFromViewController没有运行。 任何人都有同样的问题?

UITableViewCell在iOS 11中使用separatorInset隐藏分隔符失败

这是我用来在iOS 11之前隐藏单个UITableViewCell的分隔符的代码: – (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { if (indexPath.row == 0) { // Remove separator inset if ([cell respondsToSelector:@selector(setSeparatorInset:)]) { [cell setSeparatorInset:UIEdgeInsetsMake(0, tableView.frame.size.width, 0, 0)]; } // Prevent the cell from inheriting the Table View's margin settings if ([cell respondsToSelector:@selector(setPreservesSuperviewLayoutMargins:)]) { [cell setPreservesSuperviewLayoutMargins:NO]; } // Explictly set your cell's layout margins if […]

为什么iOS 11更新后,后台模式下的位置更新速度较慢?

在位置更新期间,iOS被用来在后台唤醒我的应用程序。 在更新到iOS 11之后,“唤醒”过程需要更长的时间(用户覆盖一英里或2英里的距离之后)。 我还没有看到与此相关的位置pipe理器文档的任何新的更改。 任何其他人遇到同样的问题?

准备CoreML模型时出错:CoreML代码生成不支持“<something>”

我正在修改这个教程的代码,我得到这个错误: 为代码生成准备CoreML模型“Resnet50.mlmodel”时出错:CoreML代码生成不支持Target主要语言“Swift接口”。 请将COREML_CODEGEN_LANGUAGE设置为首选语言 该项目之前使用“Places205-GoogLeNet”模型进行编译。 任何人都经历了相同的?

如何在iPhone的自定义UIViews上启用UIDragInteraction

我一直在试图使用苹果的新API来启用自定义UIViews上的拖动交互。 我已经设法使用iPad进行testing,但是当我在iPhone 7 – ios 11 beta 3中运行相同的应用程序时,我无法拖动我的自定义UIViews。 我注意到,我们需要在UICollectionView和UITableViews中使用时启用拖动交互 collectionView.dragInteractionEnabled = true tableView.dragInteractionEnabled = true 但我无法find任何文档或任何地方使自定义UIViews使它在iPhone上工作。 有没有人知道一种方法来启用iPhone的自定义UIViews的拖动交互? 谢谢

获取此错误命令/ usr / bin / codesign失败,退出代码1与xcode 9.1?

我得到这个错误 /Users/macbook/Library/Developer/Xcode/DerivedData/xxxxx-egjyfcyhdfcgftavbtoudbcgthja/Build/Products/Debug-iphoneos/xxxx.app: unknown error -1=ffffffffffffffff command /usr/bin/codesign failed with exit code 1 用xcode 9.1 / ios11.1来构build应用程序,之前我能够顺利运行我的应用程序。 任何想法可能是什么问题。 我已经尝试了以下步骤: 删除所有派生数据。 更新所有configuration文件和证书。 但是还是没有运气。

是否有可能使用Xcode 9 GM上传到App Store?

我只准备了一个与iOS 11兼容的应用程序。当我通过Xcode 9 GM出口时,我没有遇到任何问题。 同样的事情,我通过Xcode 8.3.3导出一个页面上的alignment问题。 我们可以通过Xcode 9 GM上传应用程序,还是需要等待Mac App Store中的Xcode 9正式更新? 提前致谢。

Universal iOS在iOS 11.2中破解

我在应用程序中使用分支深层链接 ,通过社交媒体共享应用程序中的内容链接。 一切工作都很好。 当更新到iOS 11.2时,我遇到了以下行为: 1)更新后,通用链接仍然工作。 2)我卸载了应用程序并重新安装了它。 3)从那以后,所有的链接总是在Safari中打开分支深层视图。 4)点击“打开应用程序”,打开AppStore。 不pipe在哪个应用程序中点击链接(Notes,WhatsApp,Messages,Facebook,…),它总是一样的行为。 点击右上angular的“转到链接”button(当应用程序被打开时),通用链接没有被绕过 。 我testing了三种不同的设备(iPhone 5s,iPhone 6s,iPhone 7)。 所有导致相同的结果。 我发现在testing版3 ( Ios 11.2 beta通用链接打开我的应用程序和Safari浏览器 )中修复了iOS 11 beta 2中的错误 ,但它可能重新出现? 任何人有相同的问题或解决方法吗?

Facebooklogin在iOS 11上显示一个额外的确认popup窗口

我已经实现了login通过Facebook使用Facebook的SDK的SWIFT。 它在iOS 10.3上按预期工作,但是在iOS 11上它显示并要求用户允许通过facebook.comlogin。 这在login过程中增加了一步,减慢了login过程。 有没有办法如何configuration应用程序来允许这个默认情况下,从而删除恼人的popup? 我正在使用facebook-sdk-swift 0.2.0(FBSDK版本是4.26.0)通过cocoa pod添加。 在info.plistconfiguration: <key>FacebookAppID</key> <string>xxxxxxxxxxxxxxx</string> <key>FacebookDisplayName</key> <string>XXXXX</string> <key>LSApplicationQueriesSchemes</key> <array> <string>fbapi</string> <string>fb-messenger-api</string> <string>fbauth2</string> <string>fbshareextension</string> </array> <key>NSAppTransportSecurity</key> <dict> <key>NSAllowsArbitraryLoads</key> <true/> <key>NSExceptionDomains</key> <dict> <key>akamaihd.net</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/> </dict> <key>facebook.com</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/> </dict> <key>fbcdn.net</key> <dict> <key>NSIncludesSubdomains</key> <true/> <key>NSThirdPartyExceptionRequiresForwardSecrecy</key> <false/> </dict> </dict> </dict> <key>CFBundleURLTypes</key> <array> <dict> <key>CFBundleURLName</key> <string>facebook</string> […]

如何将iOS 11控制中心中的屏幕捕捉转发到您的应用程序?

我看到,TeamViewer通过利用iOS 11中的控制中心的屏幕录像function,允许iOS屏幕捕捉。如下所示: 这怎么可能? 我检查了ReplayKit,但找不到任何可以连接到控制中心的function。