一个小的浏览器。。。。。。。。。有后退,前进,刷新,停止,转到,本地,调js1 _webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 40, self.view.frame.size.width, self.view.frame.siz....
分类:
Web程序 时间:
2015-04-01 17:07:48
阅读次数:
151
第一种方法:,使用监听
UIView beginAnimations
方法如下:
[UIView beginAnimations:nil context:nil];
//代理,监听对象
[UIView setAnimationDelegate:self]; //removeCover 是动画执行完后要调用方法
[UIView setAnimation...
分类:
移动开发 时间:
2015-04-01 15:28:10
阅读次数:
121
首先注册通知如下:
NSNotificationCenter.defaultCenter().addObserver(self,
selector: "keyboardWillShow:", name:
UIKeyboardWillChangeFrameNotification, object:
nil)
通知内容:
func...
分类:
移动开发 时间:
2015-04-01 11:25:58
阅读次数:
213
#import "MyView.h"@interface MyView (){ CGMutablePathRef pathRef;}@end@implementation MyView-(id)initWithCoder:(NSCoder *)aDecoder{ if (self=[su...
分类:
其他好文 时间:
2015-04-01 00:19:54
阅读次数:
114
* 一个文本输入框的文字发生改变时,文本输入框会发出一个UITextFieldTextDidChangeNotification通知* 因此通过监听通知来监听文本输入框的文字改变[[NSNotificationCenter defaultCenter] addObserver:self select...
分类:
其他好文 时间:
2015-04-01 00:16:28
阅读次数:
249
点击按钮,将self.imageView上面的image内容保存到本地相册,并指定判断保存成功与否的方法imageSavedToPhotosAlbum:didFinishSavingWithError:contextInfo:- (IBAction)saveImageToAlbum:(id)send...
分类:
移动开发 时间:
2015-03-31 23:56:06
阅读次数:
211
转自:http://www.cnblogs.com/bucengyongyou/archive/2012/10/15/2723814.html在tableView初始化的时候 UIView*v = [[UIViewalloc]initWithFrame:CGRectZero]; [self.my.....
分类:
其他好文 时间:
2015-03-31 21:54:50
阅读次数:
104
busybox_bin=/sbin/busybox# 获取PIPEget_outfd(){ if $busybox_bin ls -l /proc/self/fd/21 | $busybox_bin grep -q 'pipe'; then echo 21 else ...
分类:
移动开发 时间:
2015-03-31 21:44:40
阅读次数:
155
quick 的状态机 真是使用简单,功能强大,记录一下使用方式便于以后使用
1:创建一个状态机StateMachine
(1) self.fsm_ = StateMachine.new()
(2)self:addComponent(“component.behavior.StateMachine”)
self.fsm_ = self:getComponent(...
分类:
系统相关 时间:
2015-03-31 18:05:22
阅读次数:
173
$_SERVER['PHP_SELF'] #当前正在执行脚本的文件名,与 document root相关。$_SERVER['argv'] #传递给该脚本的参数。$_SERVER['argc'] #包含传递给程序的命令行参数的个数(如果运行在命令行模式)。$_SERVER['GATEWAY_INTE...
分类:
其他好文 时间:
2015-03-31 17:26:17
阅读次数:
128