代码截屏分五步:
首先在视图控制器上创建一个视图
UIView *aView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 320, 568)];
aView.backgroundColor = [UIColor blackColor];[self.view addSubview:aView];[aView release];
...
分类:
移动开发 时间:
2014-09-03 13:04:36
阅读次数:
222
@synthesize关键字: 根据@property设置,自动生成成员变量相应的存取方法,从而可以使用点操作符来方便的存取该成员变量 。@implementation 关键字,表明类的实现 @end 结束self 关键字 :类似于java中的this,是隐藏参数,指向当前调用方法的类。super ...
分类:
移动开发 时间:
2014-09-03 12:33:06
阅读次数:
302
获取js连接参数,如下以链接:console.log(_getArgs('skin')); //结果:green/*!* _path 获取组件核心文件lhgdialog.js所在的绝对路径* _args 获取lhgdialog.js文件后的url参数组,如:lhgdialog.js?self=tru...
分类:
Web程序 时间:
2014-09-03 11:08:46
阅读次数:
475
/** 根据屏幕的方向设置扫描的方向 * @author maguang * @param parameter * @return result */- (void)showaCapture{ CGAffineTransform transform; if (self.interface...
分类:
其他好文 时间:
2014-09-03 08:22:16
阅读次数:
422
很多事情不需要考虑如何开始,真正回想起来的时候发现自己已经在路上了. 记得若干年前,似乎也不是太远.一个连触摸板都不好使的笔记本,没有散热垫几乎无法持续工作.依然坚持不懈的玩命似的配合我工作. 那时候一个微小的按钮图片, 都要筛选上好几天. 任何角度都想完全透露出产品的良苦用心. 任何情况都要...
分类:
其他好文 时间:
2014-09-03 00:11:15
阅读次数:
272
self.context=[[NSManagedObjectContext alloc] initWithConcurrencyType:NSPrivateQueueConcurrencyType];
[self.context setPersistentStoreCoordinator:dm.PSC];
[[NSNotificationCenter defaultCenter] ...
分类:
其他好文 时间:
2014-09-02 19:59:45
阅读次数:
495
self.navigationController.interactivePopGestureRecognizer.delegate = nil;
分类:
其他好文 时间:
2014-09-02 19:35:05
阅读次数:
144
问题描述:这个问题非常常见,就是平时我们做一个按钮(我们假设这个页面是RootVC),按钮加一个事件,点击这个事件的时候会push出一个新的控制器A,当我们连续快速(时间间隔在0.5S内,也就是PUSH前一个事件的PUSH动画还没结束之前)点击两次这个按钮的时候,就会导致这个按钮连续响应了两次事件,...
分类:
其他好文 时间:
2014-09-02 19:27:35
阅读次数:
274
首先我们了解一下:window.location.href、location.href、self.location.href、parent.location.href、top.location.href他们的区别与联系,简单的说:几种location.href的区别 js实现网页被iframe框架功...
分类:
其他好文 时间:
2014-09-02 15:46:14
阅读次数:
189
首先取得命令行參數:
用法如下:
root@centos:~/code/go/self$ ./sum 1 2 4
package main
import "fmt"
import "os"
import "strconv"
func main() int{
arg_num := len(os.Args)
fmt.Printf("the num of input is ...
分类:
其他好文 时间:
2014-09-02 14:17:44
阅读次数:
120