<?php /*class Ren { public static $color; static function Show() { Ren::$color; self::$color; } } class Car { public static $name; }*/ /* //抽象类 abstra ...
分类:
其他好文 时间:
2016-06-07 12:32:22
阅读次数:
146
一.主界面的搭建,效果图.设置self.navigationItem.leftBarButtonItems属性. 由于leftBarButtonItem是通过xib文件创建的,通过xib创建的控件默认跟随父控件的大小而变化 解决方法:取消xib的autoLayout,取消xib的高度自动拉伸和宽度自 ...
分类:
其他好文 时间:
2016-06-06 18:34:54
阅读次数:
231
def query(self): '''查询检查检验的信息''' self.by_id('subbtn').click() sleep(3) text1 = self.driver.find_elements_by_css_selector('.margin5.c777') text2 = self ...
分类:
其他好文 时间:
2016-06-06 16:48:01
阅读次数:
166
里面外面都变成圆角 不用图片 直接改变layer 重点是里面外面都是圆角哦 for (UIImageView * imageview in self.progress.subviews) { imageview.layer.cornerRadius = 5; imageview.clipsToBou ...
分类:
其他好文 时间:
2016-06-06 16:41:55
阅读次数:
608
首先确保一份已经配好功能的html文件。 1.初始化一个webview(viewdidload) UIWebView* webView = [[UIWebView alloc] initWithFrame:self.view.bounds]; [self.view addSubview:webVie ...
分类:
编程语言 时间:
2016-06-06 16:31:49
阅读次数:
294
/// 手势识别器 // 1. 轻拍手势 // 手势需要在定义是绑定一个触发方法(SEL) // UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(ta ...
分类:
其他好文 时间:
2016-06-06 16:24:28
阅读次数:
115
iOS开发多线程篇—创建线程 一、创建和启动线程简单说明 一个NSThread对象就代表一条线程 创建、启动线程 (1) NSThread *thread = [[NSThread alloc] initWithTarget:self selector:@selector(run) object:n ...
分类:
移动开发 时间:
2016-06-06 13:42:07
阅读次数:
258
一.登录模块 登录逻辑 1 - (IBAction)loginClick:(UIButton *)sender { 2 3 self.view.userInteractionEnabled = NO; 4 5 [self.view endEditing:YES]; 6 7 [self.activeV ...
分类:
其他好文 时间:
2016-06-06 11:48:15
阅读次数:
236
对象初始化有两种方式:[class new] 与 [[class alloc] init] 对于后者,有分配和初始化的过程,alloc 从应用程序的虚拟地址空间上为该对象分配足够的内存,并且将新对象的引用计数加1、将对象的成员变量初始为零,init 会做真正的初使化工作,为对象的实例变量赋予合理有用 ...
分类:
其他好文 时间:
2016-06-06 10:22:15
阅读次数:
163
了解 animateWithDuration方法 制作动画变得不值钱 代码创建一个UIImageView 后加入self.view 容器中 调用点击屏幕touchesBegan 方法执行动画 #import "ViewController.h" @interface ViewController ( ...
分类:
其他好文 时间:
2016-06-05 19:59:49
阅读次数:
139