摘要: 原地址:http://www.cnblogs.com/yansi/archive/2013/05/14/3078222.html在移动开发日益激烈的情况下我也不得不硬着头皮尝试下新鲜的html5的app(对于我这种小菜鸡这还是很新鲜的)。 一个很重要的问题就是配置phonegap,phonegap介绍网上一搜一大把,小弟就不赘述了,现在最新的phonegap版本是2.7,需要用命令行安... 阅读全文
posted @ 2014-07-18 10:46 М80メ 阅读(208) 评论(0) 推荐(0) 编辑
摘要: // 网络变化消息 [[NSNotificationCenter defaultCenter] addObserver: self selector: @selector(checkNetwork) name: kReachabilityChangedNotification object: nil]; Reachability *reach = [Reachability... 阅读全文
posted @ 2014-07-14 12:44 М80メ 阅读(269) 评论(0) 推荐(0) 编辑
摘要: UISwitch大小总是改不了...找了一个简便方法.
mySwitch = [[UISwitch alloc] initWithFrame: CGRectMake( width - 55, height * .5 - 15, 100, 20)]; [mySwitch setOn: YES animated: YES]; mySwitch.transfo... 阅读全文
posted @ 2014-06-24 10:46 М80メ 阅读(2921) 评论(0) 推荐(0) 编辑
摘要: Xcode教程Xcode4发布测试打包Archive操作是本文要介绍的内容,发布测试的最后一步打包(Archive),Xcode4帮助文档有比较详细介绍,但是居然是错的,这里说明一下。1、设置“BuildSettings”,下图是官方文档截图,留意那个红框,居然说反了。"Skipinstall"一定要选NO,否则在下面的打包步骤后,Organizer看不到你的程序,就为这折腾我好些时间,... 阅读全文
posted @ 2014-06-19 21:17 М80メ 阅读(476) 评论(0) 推荐(0) 编辑
摘要: Tochangetheinstalledapplicationname,inXcode:1.SelectyourTargetontheleftsideunderGroups&Files2.SelectFile>GetInfo3.SelecttheBuildtab4.FromtheConfigurationspopup,selectA... 阅读全文
posted @ 2014-06-19 21:13 М80メ 阅读(455) 评论(0) 推荐(0) 编辑
摘要: 每 个iPhone应用程序都有一个UIApplication,UIApplication是iPhone应用程序的开始并且负责初始化并显示 UIWindow,并负责加载应用程序的第一个UIView到UIWindow窗体中。UIApplication的另一个任务是帮助管理应用程序的生命 周期,而UIApplication通过一个名字为UIApplicationDelegate的代理类来履行这个任务。... 阅读全文
posted @ 2014-06-19 19:34 М80メ 阅读(617) 评论(0) 推荐(0) 编辑
摘要: [[UIApplicationsharedApplication] beginBackgroundTaskWithExpirationHandler: ^() { //程序在10分钟内未被系统关闭或者强制关闭,则程序会调用此代码块,可以在这里做一些保存或者清理工作 }]; 阅读全文
posted @ 2014-06-19 19:31 М80メ 阅读(167) 评论(0) 推荐(0) 编辑
摘要: //清除cookies NSHTTPCookie *cookie; NSHTTPCookieStorage *storage = [NSHTTPCookieStorage sharedHTTPCookieStorage]; for (cookie in [storage cookies]) { [storage deleteCookie:cookie]; ... 阅读全文
posted @ 2014-06-19 11:19 М80メ 阅读(213) 评论(0) 推荐(0) 编辑
摘要: 启动/关闭无线网卡ifconfig wlan0 up / ifconfig wlan0 down更改Mac地址:macchanger -A wlan0启动监听airmon-ng start wlan0获取airodump-ng mon0 / airodump-ng mon0 -c 信道 抓取指定信道 解决信道固定问题抓包airodump-ng — — ivs -w 文件名 -c ... 阅读全文
posted @ 2014-06-18 14:50 М80メ 阅读(512) 评论(0) 推荐(0) 编辑
摘要: [UIScreen mainScreen].applicationFrame与[UIScreen mainScreen].bounds区别:applicationFrame会自动判断是否存在状态栏,其值为{0,0},{320,480}或{0,20},{320,480}bounds不会自动判断,值永远为{0,0},{320,480} 阅读全文
posted @ 2014-06-11 12:01 М80メ 阅读(191) 评论(0) 推荐(0) 编辑