在iOS中重新加载特定的UITableView单元格

我有一个UITableView 。 我想根据所做的select更新表格数据。 现在我使用[mytable reloadData] ; 我想知道是否有什么方法可以更新所选的特定单元格。 我可以通过使用NSIndexPath或其他修改? 有什么build议么? 谢谢。

itunes使用应用程序加载器在防火墙后面连接

我试图将应用程序的app store构buildzipfile upload到app store。 在我的办公室防火墙后使用时,TCP / IP连接失败。 我需要知道什么确切的端口应该打开上传iPhone应用程序使用应用程序加载器。 这样该端口就可以打开了。 或者其他configuration,如果你知道的话。

UITableViewCells之间的间距

我在swift中创build一个ios应用程序,并希望在Facebook(pic bellow)之类的单元格之间添加空格。 我正在使用自定义笔尖的post。 我知道使用UITableViewController。 我想我会使用一个分隔符样式,但它没有达到效果。 我瞪着几个小时,并没有find一个快速的教程,这是有道理的! 有人可以解释一下,他们是如何在应用程序中使用swift? 谢谢!

Swift将unix时间转换为date和时间

我目前的代码。 if let var timeResult = (jsonResult["dt"] as? Double) { timeResult = NSDate().timeIntervalSince1970 println(timeResult) println(NSDate()) } 结果 println(timeResult)= 1415639000.67457 println(NSdate())= 2014-11-10 17:03:20 +0000只是testing,看看NSdate提供了什么。 我希望第一个看起来像最后一个。 dt = 1415637900的值。 另外我怎样才能调整时区? 在iOS上运行。

无法将searchBar设置为firstResponder

我有一个searchBar我设置在一个tableviewcontroller。 我已经引用了这个类似的问题UISearchBar不能成为UITableView重新出现后的第一响应者,但仍然无法将其设置为第一响应者。 在.h文件中: @property (strong, nonatomic) UISearchController *searchController; @property (strong, nonatomic) IBOutlet UISearchBar *searchBar; 鉴于didload: self.searchController = [[UISearchController alloc]initWithSearchResultsController:nil]; self.searchController.searchResultsUpdater = self; self.searchController.dimsBackgroundDuringPresentation = NO; self.searchController.hidesNavigationBarDuringPresentation = NO; self.searchController.searchBar.frame = CGRectMake(self.searchController.searchBar.frame.origin.x, self.searchController.searchBar.frame.origin.y, self.searchController.searchBar.frame.size.width, 44.0); self.tableView.tableHeaderView = self.searchController.searchBar; 而在viewDidAppear: -(void)viewDidAppear:(BOOL)animated { [self.searchController setActive:YES]; [self.searchController.searchBar becomeFirstResponder]; [super viewDidAppear:animated]; } 当我继续观看searchBaranimation,但没有出现键盘。

核心数据 – 如何获取具有最大值属性的实体

我有一个实体Person与财产personId (personId是唯一的) 我怎样才能获取最大personId的人? (我想把这个人本身取而不是财产的价值)

将UTCdate格式转换为本地nsdate

我从我的服务器获取UTC时区的stringdate,我需要将其转换为本地时区。 我的代码: let utcTime = "2015-04-01T11:42:00.269Z" let dateFormatter = NSDateFormatter() dateFormatter.timeZone = NSTimeZone(name: "UTC") dateFormatter.dateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'" let date = dateFormatter.dateFromString(utcTime) println("utc: \(utcTime), date: \(date)") 这打印 – utc:2015-04-01T11:42:00.269Z,date:可选(2015-04-01 11:42:00 +0000) 如果我删除 dateFormatter.timeZone = NSTimeZone(name: "UTC") 它打印 utc:2015-04-01T11:42:00.269Z,date:可选(2015-04-01 08:42:00 +0000) 我的本地时区是UTC +3,在第一个选项我得到UTC在第二个选项我得到UTC -3 我应该得到 utc:2015-04-01T11:42:00.269Z,date:可选(2015-04-01 14:42:00 +0000) 那么如何将UTCdate格式转换为当地时间呢?

记住UITableView的滚动位置

我在xcode中的iOS应用程序有点问题。 我有一个UITableView加载几百个单元格。 当我向下滚动到一个特定的单元格,深入detailviewcontrollers并再次返回主视图表已返回到顶部。 我看了下面两个类似的问题。 我怎样才能获得UITableView的滚动位置,所以我可以保存它? 在UITableView中设置滚动位置 我仍然无法让这些工作。 我不是最有经验的编码器,所以我真的很困难。 我知道像viewWillDisappear和viewDidAppear需要改变的东西,但我真的不能远远超过这一点。 在这张桌子上,我有一个reloadDatafunction,所以可以从服务器上下载最新的数据,也可以在工作的search栏中查看。 无论如何,一个援助之手将是伟大的。 谢谢, 卢克

在Xcode中的豆荚错误“Id:framework not found Pods”

我试图从一个bitbucket存储库克隆一个项目,并得到一个错误Id: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation)当试图在工作区中运行一个Xcode项目时, Id: framework not found Pods clang: error: linker command failed with exit code 1 (use -v to see invocation) 。 这些是我所遵循的步骤,如果有人能让我知道我做错了什么,那会很棒! git clone (link to bitbucket) debugging和发布都将Xcode pods项目中的configuration设置更改为none 执行pod install 打开Xcode工作区文件 尝试在Xcode中生成,并收到错误Id: framework not found Pods […]

在ios 9中隐藏状态栏

你如何隐藏ios 9中的状态栏? 现在已经弃用了: [UIApplication sharedApplication] setStatusBarHidden:YES];