最新文章列表

[IOS]如何自定义UITableView的section样式

一.如何配置section 参考:https://www.youtube.com/watch?v=-yeaLC0jgss 配置无标题section: let sections = [" "," "]  不能直接"",IDE会默认为没有section 配置DataSource: menuList = [ ...
繁星水 评论(0) 有899人浏览 2019-07-26 11:56

UIScrollView,UITableView的简单使用

UIScrollView的简单使用   1,创建对象 2,设置滑动区域 3,创建滑动的View 4,将滑动的view添加到ScrollView上显示 5,释放对象 CGRect screenBounds = [ [UIScreen mainScreen]bounds];//返回的是带有状态栏的Rect // CGRect rect = [ [UIScreen ...
百合不是茶 评论(0) 有2802人浏览 2015-12-21 23:57

UITableView的两种重用Cell方法的区别

UITableView中有两种重用Cell的方法: - (id)dequeueReusableCellWithIdentifier:(NSString *)identifier; - (id)dequeueReusableCellWithIdentifier:(NSString *)identifier forIndexPath:(NSIndexPath *)indexPath NS_AVA ...
jsntghf 评论(0) 有16066人浏览 2015-08-10 13:07

根据UITableView的行数动态调整UITableView的高度

1、在viewDidLoad中添加观察者 [self.tableView addObserver:self forKeyPath:@"contentSize" options:0 context:NULL];   2、重写observeValueForKeyPath方法,一旦UITableView的contentSize发生改变,就会调用这个方法 - (void)ob ...
jsntghf 评论(0) 有3418人浏览 2015-06-16 23:03

ios uitableview 刷新失败的问题。

我想更新到连接自定义单元格。我想要搜索时刷新表格单元格。我使用 reloadRowsAtIndexPaths 方法。这种方法的工作,但未更新的单元格。你能帮我吗 以下方法运行时,我搜索 -(void)doSearchHotelName:(id)sender{ NSIndexPath *tmpIndexpath=[NSIndexPath indexPathForRow:1 in ...
zjjzmw1 评论(0) 有1487人浏览 2015-05-18 13:21

uitableview的section不置顶的方法

 ///去掉section的黏性。不让其置顶。     CGFloat sectionHeaderHeight = 40;     if (scrollView.contentOffset.y<=sectionHeaderHeight&&scrollView.contentOffset.y>=0) {         scrollView.contentInse ...
zjjzmw1 评论(0) 有2331人浏览 2014-08-15 18:28

ios 实现类似比微信还好的下拉tableview上面的图片变大的效果

核心代码两个方法: - (void)viewDidLoad {     [superviewDidLoad];     self.myDataArray = [NSMutableArrayarrayWithObjects:@"小明",@"刘德华",@"李连杰",@"孙俪",@"刘小光",@ ...
zjjzmw1 评论(0) 有16843人浏览 2014-07-14 11:22

UITableView展开合上的动画。

右边那个那个图片会从左边飞过来,,,如果用自定义cell就不会了。。。。   -(void)tapAction:(id)sender{     UIButton *tempBtn = (UIButton *)sender;    self.openString = [NSString stringWithFormat:@"%d",tempBtn.tag];      ...
zjjzmw1 评论(0) 有2006人浏览 2014-03-26 12:08

拖动UITableView时,NSTimer暂停

1、 CFRunLoopRef runLoop = CFRunLoopGetCurrent(); CFRunLoopTimerContext context = {0, NULL, NULL, NULL, NULL}; CFRunLoopTimerRef timer = CFRunLoopTimerCreate(kCFAllocatorDefault, CFAbsol ...
断虹残雪 评论(0) 有626人浏览 2014-02-19 10:00

使UITableView最上面留出UINavigationBar空间的两种方法

使UINavigationBar透明,TableView在其下面,可以扩大UITableView的视野. 1) UIView *headerView = [[UIView alloc] initWithFrame: CGRectMake(0, 0, 320, 44)]; m_tableView.tableHeaderView = headerView; 
seemefly163_0 评论(0) 有899人浏览 2013-08-06 15:31

UITableView 只更新某行

如果全部更新的话 用reloadData方法   如果只是更新某几行数据的时候, NSIndexPath *indexPath_1 = [NSIndexPath indexPathForRow:0 inSection:1]; NSArray *indexArray = [NSArray arrayWithObject:indexPath_1]; [self.mT ...
xyxdasnjss 评论(0) 有1014人浏览 2013-07-22 10:10

设置UITableView不允许滚动

tableview.scrollEnabled = NO  
dcj3sjt126com 评论(0) 有1108人浏览 2013-07-06 10:43

UITableView分割线样式与颜色

tv.separatorStyle = UITableViewCellSeparatorStyleSingleLine; tv.separatorColor = [UIColor colorWithRed:52.0f/255.0f green:53.0f/255.0f blue:61.0f/255.0f alpha:1];  
dcj3sjt126com 评论(0) 有1545人浏览 2013-07-03 20:22

自定义UITableViewCell上的delete按钮

//通过UITableViewDelegate方法可以实现删除 tableview中某一行 //滑动删除 -(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPat ...
xyxdasnjss 评论(0) 有1064人浏览 2013-06-28 10:35

UITableView使用

UITableView使用 - (void)viewDidLoad { [super viewDidLoad]; //初始化数据 NSArray *array1_=@[@"张铁林",@"张国立",@"张国荣",@"张艺谋",@"张惠妹"]; NSArray ...
sgm881218 评论(0) 有7576人浏览 2013-04-23 22:34

UITableView小片段,小总结

1. - (CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath 方法要比 - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *) ...
xyxdasnjss 评论(0) 有1398人浏览 2013-04-01 13:23

IOS之UITableView详解

一、建立 UITableView UITableView *tabYwKPI = [[UITableView alloc]initWithFrame:CGRectMake(0, 100, 320, 366)]; tabYwKPI.separatorColor = [[UIColor alloc] initWithRed:0.8 green:0.8 blue:0.8 alpha:1 ...
ytwhw 评论(1) 有6391人浏览 2012-12-15 16:53

EGORefreshTableHeaderView - iPhone下拉动列表更新列表内容

介绍:手指拖拉/拖拽/往下拉动列表更新列表内容。 适用环境:Xcode 4.3, iOS 5.0。 下载地址:github.com 更多源码,请访问 开源苹果 运行截图:    
Chinatiger 评论(0) 有1133人浏览 2012-12-15 15:51

优化UITableView性能

在iOS应用中,UITableView应该是使用率最高的视图之一了。iPod、时钟、日历、备忘录、Mail、天气、照片、电话、短信、Safari、App Store、iTunes、Game Center⋯几 ...
xyxdasnjss 评论(0) 有1620人浏览 2012-10-31 11:56

最近博客热门TAG

Java(141744) C(73651) C++(68608) SQL(64571) C#(59609) XML(59133) HTML(59043) JavaScript(54919) .net(54785) Web(54514) 工作(54118) Linux(50905) Oracle(49875) 应用服务器(43289) Spring(40812) 编程(39454) Windows(39381) JSP(37542) MySQL(37267) 数据结构(36424)

博客人气排行榜

    博客电子书下载排行

      >>浏览更多下载

      相关资讯

      相关讨论

      Global site tag (gtag.js) - Google Analytics