码迷,mamicode.com
首页 >  
搜索关键字:void    ( 62627个结果
检查文件内容
class Program { static List lastFiles = new List(); static List errorfiles = new List(); static void Main(string[] args) ...
分类:其他好文   时间:2015-11-12 17:38:46    阅读次数:158
UICollectonView
- (void)viewDidLoad { ? ? [super viewDidLoad]; ? ? [_plantCollectionView registerNib:[UINib nibWithNibName:@"PlantCollectionViewCell" bundle:nil] forCellWithReuseIdentifier:CellIdentifier]; ? ...
分类:其他好文   时间:2015-11-12 16:22:30    阅读次数:316
iOS线程锁简单样例
#import?"ViewController.h" @interface?ViewController?() { ????NSInteger?_cnt; ????NSLock?*_lock; } @end @implementation?ViewController -?(void)viewDidLoad?{ ????[super?viewD...
分类:移动开发   时间:2015-11-12 16:20:12    阅读次数:287
DbMigration 外键删除修改
public partial class _20151112 : DbMigration { public override void Up() { DropForeignKey("dbo.T_RoleProductModule", "Pro...
分类:数据库   时间:2015-11-12 13:16:15    阅读次数:254
获取父类的私有变量
开始时调用了方法 object_getInstanceVariable(idobj,constchar*name,void**outValue),使用该方法确实可以获取到另一个类私有变量的值,但是只能在非ARC环境中使用(配置方法:点击 工程名->Build Settings->搜索Automati...
分类:其他好文   时间:2015-11-12 11:48:48    阅读次数:198
使用传统方法序列化
public void on(View view){ //创建一个Stringuffer实例对象用来拼接HTML文件 StringBuffer sbf=new StringBuffer(); sbf.append(""); sbf.append(""); for (Sm...
分类:其他好文   时间:2015-11-12 11:43:32    阅读次数:163
myBatis 实现用户表增操作(复杂型)
增加@Test public void addTest(){ String resource = "mybatis-config.xml"; SqlSession sqlSession = null; try { User use...
分类:其他好文   时间:2015-11-12 11:42:30    阅读次数:195
自定义UITableViewCell时, 使用autoLayout, 无法很好的做到屏幕适配
解决方法:重写cell的setFrame方法即可-(void)setFrame:(CGRect)frame{ frame.size.width=self.window.frame.size.width; [supersetFrame:frame]; }
分类:其他好文   时间:2015-11-12 11:39:26    阅读次数:165
Java 毫秒转换为日期类型、日期转换为毫秒
//毫秒转换为日期public static void main(String[] args) {DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");long now = System.currentTimeMilli...
分类:编程语言   时间:2015-11-12 11:26:47    阅读次数:300
根据数据中的表生成实体和mapper接口及映射文件
1.创建一个Java工程,工程结构为 2.需要的jar包 链接:http://pan.baidu.com/s/1gd2jNDh 密码:pyux 3.GeneratorSqlmap public class GeneratorSqlmap { ?????public void generator() throws Exceptio...
分类:移动开发   时间:2015-11-12 10:09:35    阅读次数:501
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!