Tag: 滚动

向下滚动时,UITableview不可见最后一个单元格

我对iOS很新。 我有一个UITableView充满了很多的自定义单元格,但当向下滚动时,底部的单元格是不可见的。我的UITableView的Y值是44,高度是480.当向下滚动时,只有最后一个单元格的一半是可见的。 我该如何解决这个问题。 提前致谢。

如何在UIScrollview中embedded一个UITableView

我怎样才能在UIViewController(包含一个tableview作为子视图) 我最初有一个UIViewController显示预览部分(UIView) //Setup container for preview section UIView *tempContainer = [[UIView alloc]initWithFrame:CGRectMake(0, 20, 320, 100)]; self.preview_answer_container = tempContainer; self.preview_answer_container.backgroundColor = [UIColor clearColor]; [tempContainer release]; [self.view addSubview:self.preview_answer_container]; 我还在下面添加了一个UITableView(和一个search栏) //setup tableview UITableView *tempTable = [[UITableView alloc]initWithFrame:CGRectMake(0,44 ,320,self.view.frame.size.height – 44)]; self.tagFriendsTableView = tempTable; self.tagFriendsTableView.delegate = self; self.tagFriendsTableView.dataSource = self; [tempTable release]; [self.view addSubview:self.tagFriendsTableView]; 有了这个设置,我的滚动区域很小(只有预览部分下面的静态区域) 我怎样才能修改我的代码,使1)我可以向上滚动整个页面,即预览部分和tableview将一起向上滚动2)滚动作为一个整体将停止当search栏到达顶部(下方导航栏)(见截图),但UITableView中的内容仍然是可滚动的 编辑: 添加了UIScroll视图的代码。 然而,我没有任何改变。 […]

UITableView与图像滚动很慢

可能重复: 带有图像的表格视图,缓慢加载和滚动 我有一个UITableView从服务器下载UITableView图像。 我观察到tableView滚动很慢。 我以为这可能会下载问题,但我已经意识到,下载完成后,表仍然滚动,图像图标大小较小。 我search了Google,但找不到任何帮助。 – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { btnBack.hidden = FALSE; static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] autorelease]; cell.selectionStyle = UITableViewCellSelectionStyleNone; cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; cell.backgroundColor = [UIColor clearColor]; cell.textLabel.font = [UIFont fontWithName:@"Noteworthy" size:17.0]; cell.textLabel.font = […]

iOs5 iPad / iPhone中滚动的iframe内容不呈现

我正在开发需要显示来自其他来源(不同域)的网页的iPad的HTML5网页。 我将这些页面加载到iframe ,并使用iOs5新的滚动function滚动iframe ,如下面的代码所示。 <div id="myDiv" style="height: 1185px; width: 100%; overflow:scroll; -webkit-overflow-scrolling: touch;"> <iframe id="myIframe" src="http://http://css-tricks.com/forums/discussion/11946/scrolling-iframe-on-ipad/p1"></iframe> </div> 问题在于,滚动到屏幕外的iframe内容不可见(帧为空白)。 我如何克服这个问题,并提供可滚动的iframe解决scheme?