Tag: uitableview

iOS 7 – 键盘animation

我试图了解iPhone 5模拟器上的iOS 7.0中的新键盘animation。 我想调整我的UITableView当键盘出现,但我不能得到正确的animation细节。 当键盘出现或消失时,我使用NSNotification对象中的信息。 这是我的日志: Move keyboard from {{0, 920}, {320, 216}} to {{0, 352}, {320, 216}} with duration: 0.400000 and animation curve: 7 UIViewAnimationCurveEaseInOut = 0 UIViewAnimationCurveEaseIn = 1 UIViewAnimationCurveEaseOut = 2 UIViewAnimationCurveLinear = 3 animation曲线是一个未知的值,我该怎么做?

获取UITableView滚动到选定的UITextField并避免被键盘隐藏

我在UIViewController (而不是UITableViewController )的表视图中有一个UITextField 。 如果表格视图位于UITableViewController ,则表格将自动滚动到正在编辑的textField字段,以防止其被键盘隐藏。 但在UIViewController它不。 我已经尝试了几天阅读通过多种方式来尝试完成这一点,我不能得到它的工作。 实际滚动的最接近的是: -(void) textFieldDidBeginEditing:(UITextField *)textField { // SUPPOSEDLY Scroll to the current text field CGRect textFieldRect = [textField frame]; [self.wordsTableView scrollRectToVisible:textFieldRect animated:YES]; } 但是,这只能将表格滚动到最上面一行。 看起来像一个容易的任务是一两天的挫折。 我正在使用以下来构造tableView单元格: – (UITableViewCell *)tableView:(UITableView *)aTableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { NSString *identifier = [NSString stringWithFormat: @"%d:%d", [indexPath indexAtPosition: 0], [indexPath indexAtPosition:1]]; UITableViewCell *cell = [aTableView […]

更改UITableView中复选标记的颜色

有人能这么友好地告诉我如何改变UITableView的复选标记的颜色? 我已经搜查,但似乎并没有得到它的工作。 干杯

为什么detailTextLabel不可见?

detailTextLabel不可见(下面的代码)。 你能告诉我为什么吗? // Customize the appearance of table view cells. – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; } // Configure the cell… NSString *cellValue = [myListArray objectAtIndex:indexPath.row]; cell.textLabel.text = cellValue; cell.detailTextLabel.text = @"Hello […]

如何删除UITableView中最后一个单元格的最后一个边框?

在我的应用程序,我使用UITableView我的问题是,我想删除UITableView中的最后一个单元格的最后一个边框。 请检查以下图片:

UITableview用animation重新载入数据

Iam有一个从数组和下拉列表填充的UItableView。 如果我select下拉列表中的任何一行数组将插入新的值和tableview应该重新加载。 如何使用新的数组内容来animationtableview? 提前致谢

我如何在UITableViewCell中定制附件披露图像?

我想在我的UITableView中使用标准披露附件图像的自定义版本。 我怎样才能做到这一点? 我希望子分类UITableViewCell是不必要的这个基本的东西。

在iOS5中我的UITableView dequeueReusableCellWithIdentifier错误

我在iOS 5中得到这个错误 -[UITableView dequeueReusableCellWithIdentifier:forIndexPath:]: unrecognized selector sent to instance 0xa217200 但是,我在iOS 6中没有遇到任何错误。我该如何解决这个问题? 这是我的代码: – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"MyCell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath]; /// SIGABRT error if (!cell) { cell = [[UITableViewCell alloc] initWithStyle: UITableViewCellStyleSubtitle reuseIdentifier: CellIdentifier]; } return cell; }

UITableViewCell中的button不响应下ios 7

我有一个tableview,每个单元格包含一个button。 它工作得很好所有的iOS版本,但7。我不知道发生了什么事情。 单元格构build在一个xib文件中。 任何人都可以给我一些build议吗? 提前致谢。

UITableViewCell展开点击

可以说我们有一个自定义的UITableViewCell 所以,每当我点击单元格上的自定义button..它应该扩大到一定程度(你可以说40高度更多…),当我再次点击相同的自定义button应该崩溃到以前的高度。 开发者请引导我..我怎么能实现这个任务