草庐IT

site_section

全部标签

ios - 在 tableView 中获取 Section indexPath 的行

最近我在我的应用程序中为用户名实现了一个索引功能。我一直在尝试访问每个部分中的行,并在用户点击索引路径时将它们添加到我的收件人数组中。我尝试在我的objectAtIndex:方法中传递许多不同的值,但似乎没有一个有效。我能够在indexPathForRow:inSection:方法中记录正确的索引行和部分,但返回值是indexPath而不是整数。所以我的objectForIndex:方法显然不对。任何帮助或引用都会很棒。干杯!这一行:PFUser*user=[self.friendsobjectAtIndex:indexPath.section];无论我在该部分中点击什么名称,都只返回

ipad - 核心数据示例,无效更新 : invalid number of rows in section 0

我是iOS和XCode的新手,正在学习CoreData教程,我真的很困惑。我不断在以下错误日志中收到错误:ExceptionType:EXC_CRASH(SIGABRT)ExceptionCodes:0x0000000000000000,0x0000000000000000CrashedThread:0Dispatchqueue:com.apple.main-threadApplicationSpecificInformation:iPhoneSimulator235,iPhoneOS4.2(iPad/8C134)***Terminatingappduetouncaughtexcept

ios - UITableView 内部错误 : unable to generate a new section map with old section count: and new section count: with userInfo (null)

我以前从未见过这个错误,我搜索了它可能发生的原因,但找不到任何相关信息:CoreData:error:Seriousapplicationerror.AnexceptionwascaughtfromthedelegateofNSFetchedResultsControllerduringacallto-controllerDidChangeContent:.UITableViewinternalbug:unabletogenerateanewsectionmapwitholdsectioncount:1andnewsectioncount:0withuserInfo(null)有人知道

ios - 核心数据错误 : 'Objects must be sorted by section name' for specific languages such as Thai

CoreData:error:(NSFetchedResultsController)Thefetchedobjectatindex72hasanoutofordersectionname'อั.Objectsmustbesortedbysectionname'我使用以下代码按书名字段排序,并将书名的第一个大写字母显示为UITableViewController中的部分名称。代码在除泰语以外的所有语言中都能完美运行。我在Internet上看到有特殊的非美国字符导致此类问题(即Æ),但我还没有找到任何解决方案。请参阅gschandler对Thefetchedobjectatindex[i

ios - 如何在 Nginx/Rails 上为 apple-app-site-association 文件设置正确的内容类型

为了为iOS应用程序设置通用链接,我创建了一个apple-app-site-association文件,并将其放在我的Rails应用程序的/public目录中。我可以将它curl到正确的地址,但它返回错误的内容类型。它返回application/octet-stream,而不是application/json或application/pkcs7-mime,如您在此处的响应中所见:curl-ihttps://example.com/apple-app-site-associationHTTP/1.1200OKServer:nginx/1.10.1Content-Type:applicat

ios - 为什么 - (void)tableView :(UITableView *)tableView willDisplayHeaderView:(UIView *)view forSection:(NSInteger)section not called

-(void)tableView:(UITableView*)tableViewwillDisplayHeaderView:(UIView*)viewforSection:(NSInteger)section{[viewvChangeBackgroundToCyan];}之后[self.delegateForTableController.tvDelegatedinsertSections:[NSIndexSetindexSetWithIndex:ip.section]withRowAnimation:UITableViewRowAnimationRight];如何称呼他们?

ios - 签署 apple-app-site-association

我尝试实现iOS9UniversalLinks。我正在使用本教程:http://blog.hokolinks.com/how-to-implement-apple-universal-links-on-ios-9/和这个:https://developer.apple.com/library/ios/documentation/Security/Reference/SharedWebCredentialsRef/但他们都没有完成整个过程。我会apple-app-site-association文件。上面的链接说要这样做:catjson.txt|opensslsmime-sign-ink

ios - 配置apple-app-site-association文件并上传到服务器

我是iOS开发新手。我正在使用ASP.net应用程序在iOS应用程序中实现通用链接。我在关联域下的功能中定义了我的关联域:应用链接:www.abcd.com并在AppleDeveloperAccount的AppIds中配置。我认为应用程序方面的工作已经准备就绪。但我认为apple-app-site-association文件有问题。我已经在一个简单的文本文件中编写了json,如下所示{"applinks":{"apps":[],"details":[{"appID":"8T8932TY.com.AppName”,"paths":["*"]}]}}现在我被困在这里了。我的应用程序针对iO

ios - Apple 的 App Search API 验证工具 - "Error cannot fetch app site association"

我正在尝试获取此Apple'sAPIvalidator在https://signin.methodwarehouse.com上验证我的apple-app-site-association文件.验证器说“错误无法获取应用程序站点关联”。然而,这个文件显然可以在https://signin.methodwarehouse.com/apple-app-site-association获得。.这个JSON文件的内容是直接从Apple'sdocumentation复制过来的所以它应该验证得很好。我究竟做错了什么?为什么这个文件没有通过验证? 最佳答案

ios - 使用 Section UITableView 按字母顺序对联系人进行排序

我有一个NSMutableArray:self.contact对象(名称按字母顺序排序):("AnnaHaro","CheesyCat","DanielHiggins","DavidTaylor","FrecklesDog","HankZakroff","JohnAppleseed","KateBe\U00e9ll")我用这行代码成功地在右边显示了字母表:-(NSArray*)sectionIndexTitlesForTableView:(UITableView*)tableView{return[NSArrayarrayWithObjects:@"A",@"B",@"C",@"D",