最新文章列表

[IOS]两个tableview

参考:http://www.cnblogs.com/yutingliuyl/p/7052427.html   操作也很简单,就是判定是哪个table就ok - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { if ([tableView isEqual:sel ...
繁星水 评论(0) 有457人浏览 2018-12-22 15:07

(转)[IOS]iOS 7后导航控制器导致ScrollView和TableView偏移

转自:https://www.jianshu.com/p/4cdcfb97704f   设置有导航控制器后,ScrollView和TableView的ContentInset默认偏移64,如果不希望系统自动偏移,可以通过以下三种方式取消 在导航控制器下将Translucent穿透/透明效果取消 self.navigationBar.translucent = NO; 当 ...
繁星水 评论(0) 有956人浏览 2018-07-11 17:11

[IOS]tableview---delete按钮颜色改变以及事件

-(void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath{ } -(BOOL)tableView:(UITableView *)tableView ...
繁星水 评论(0) 有945人浏览 2018-05-04 11:36

[IOS]关于tableview编辑状态那个delete按钮改成中文的问题

- (NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath { return @"删除"; }  
繁星水 评论(0) 有630人浏览 2018-04-17 18:31

(转)UITableView的分割线长短的控制

转自:http://blog.csdn.net/smiling8866/article/details/51548234   一、遇到问题 当我利用第三方 FPPopoverController 来显示UITableView的时候,cell的分割线左边没有顶满,而右边却顶满了。这样显示很难看。我需要让其左右两边都是未顶满状态,距离是15像素。 二、解决方法 1、在UITableVie ...
繁星水 评论(0) 有885人浏览 2017-11-22 14:56

[IOS]刷新tableview后不丢失cell的selected状态

1.核心语句: [_tableView reloadData]; [_tableView layoutIfNeeded];//重置约束  刷新table地方后面添加: NSIndexPath *ip = [NSIndexPath indexPathForRow:0 inSection:_lastSelectRow]; [_tableView selectRowAtInd ...
繁星水 评论(0) 有1475人浏览 2017-10-11 14:51

(转)[IOS] UITableView 基本使用方法总结

转自:http://blog.csdn.net/tangaowen/article/details/6438362   1.   首先,Controller需要实现两个  delegate ,分别是  UITableViewDelegate 和  UITableViewDataSource      2.然后 UITableView对象的 delegate要设置为 self。      ...
繁星水 评论(0) 有570人浏览 2017-07-04 11:36

【ios】tableview总结

一.定义tableview 1.定义dataSource & delegate 在storyboard上选取tableview,在链接器上把dataSource & delegate都拉到viewcontroller的小圆点上 2.在头文件上继承<UITableViewDataSource,UITableViewDelegate> 3.声明tableview: ...
繁星水 评论(0) 有750人浏览 2016-12-20 15:52

判断scrlloview是否是向下滑动的

#pragma mark 判断页面是否是向下滑动的 -(void)scrollViewWillBeginDragging:(UIScrollView *)scrollView {     CGPoint translation = [scrollView.panGestureRecognizer translationInView:scrollView.superview];     if ...
zjjzmw1 评论(0) 有1232人浏览 2016-01-20 15:54

javafx 2 的表格 绑定到 map

当 一个tabview 要不同时候展现不同的数据表时,往往需要tabview的数据绑定到一个动态集合上。 下面的例子就展示了这种功能。 其中Person类,可以是共用,随便取的一个名字,不要以为仅仅是表示人名才能用 本例是 jdk 1.8  所写。 用了lamda达表达式 界面是这样的 /* * To change this license header, choose L ...
yunhaifeiwu 评论(0) 有3386人浏览 2015-04-22 15:29

简单表视图并实现添加数据

1.基础:表用于显示数据列表。数据列表中的每项都由行表示。表视图是显示表数据的视图对象,它是UITableView类的一个实例,表中的每个可见行(表视图单元)都由UITableViewCell类实现。 2.实现表视图。 首先说明一下数据源(datasource)和委托(delegate) 在头文件中需要添加以下代码:<UITableViewDelegate,UITableViewDataSou ...
xiaotongeye 评论(0) 有1313人浏览 2014-09-10 19:21

UICollectionView 刷新问题。reload不能直接用

 刷新UICollectionView的时候不能直接用   reload方法。。。 [self reloadInputViews]; ///这句至关重要。。。。     NSIndexPath *indexPath = [self.collectionViewindexPathForCell:slideDeleteCell];          [self.collectionView ...
zjjzmw1 评论(0) 有6226人浏览 2014-08-12 13:30

CCTableView滚动到指定位置

本方法只能在CCTableView的扩展类中实现,因为其中的计算方法依赖于CCTableView的protected方法。 具体代码如下: void scrollToCellIndex(int index) { CCPoint offset = ccpSub(CCPointZero, _offsetFromIndex(index)); float ...
song020cn 评论(0) 有2604人浏览 2014-03-13 21:36

ios tableView的分割线左边不到头的问题。

if ([self.tableView respondsToSelector:@selector(setSeparatorInset:)]) {                  [self.tableView setSeparatorInset:UIEdgeInsetsZero];              }
zjjzmw1 评论(0) 有9207人浏览 2014-02-21 13:16

水平放置的tableview

// //  BMViewController.m //  UITableViewTest // //  Created by wangbaoxiang on 13-4-23. //  Copyright (c) 2013年 apple. All rights reserved. //   #import "BMViewController.h"   @in ...
zjjzmw1 评论(0) 有1282人浏览 2013-12-19 11:17

javaFX实践-快递查询工具 part 1

  首先我得先跟看到此博客的先生女士们说声对不起. 为什么上来就道歉呢? 先让我阐述下这个工具的需求是怎么来的吧...本人是写JS的码农,媳妇儿为了补贴家用开了个化妆品的淘宝店铺. 为了感谢媳妇儿,给媳妇儿写个小工具方便查询快递单号,并且还可以推广下媳妇儿的淘宝店铺. 于是我在这个工具上加了媳妇儿店铺的广告. 希望各位大神男神女神体谅. 由于老加班今天就先贴上小工具的图片/下载地址供大家吐槽和下 ...
fengchao 评论(0) 有1115人浏览 2013-09-27 21:40

在tableViewTable中创建tableCell,不同分区含有不同数量的Cell(转)

 1、确定tableview中分分区数 - (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {     return 2; } 2、确定每个section中的cell数量   - (NSInteger)tableVie ...
jaybril 评论(0) 有1162人浏览 2013-08-31 00:06

UITableViewCell的选中时的颜色设置

1.系统默认的颜色设置   [cpp] view plaincopy
dcj3sjt126com 评论(0) 有1090人浏览 2013-07-05 14:32

tableView 选中时的背景颜色设置

1.系统默认的颜色设置 //无色  cell.selectionStyle = UITableViewCellSelectionStyleNone;  //蓝色  ,系统默认是蓝色的 cell.selectionStyle = UITableViewCellSelectionStyleBlue;  //灰色  cell.selectionStyle = UITableViewCellSel ...
依然fine 评论(0) 有2214人浏览 2013-03-27 18:22

设置UITableView Section的背景颜色和字体颜色

有个app需要用到tableView,系统自带的section样式不怎么好看,需要自己修改下,找到了修改的方法,mark下 section所显示的灰色背景和白色字体是默认的,调用以下方法即可实现 - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section {     retu ...
依然fine 评论(0) 有3852人浏览 2013-03-14 15:55

最近博客热门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