上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 30 下一页
摘要: Beini Compatible Hardware ListDo not expect that you will be able to hack WiFi with your default internal WiFi card or Mac's Airport. As stated in the beginning, you will need some compatible hardware, check out the list. I recommend anything with anRTL8187Lchip or RT3070 chip or compatible devi 阅读全文
posted @ 2012-05-17 21:59 阿新 阅读(12442) 评论(0) 推荐(0)
摘要: 打开WHR-HP-G54-AP的HP(High Power)功能,也就是高功率的意思。telnet登陆路由器,在开始→运行中输入telnet 192.168.1.1用户名 root,密码 admin输入如下命令:nvram show | grep boardflags回车boardflags=0x1758如果得到0x1758参数,使用如下命令将其改为0x3758nvram set boardflags=0x3758nvram commitreboot 阅读全文
posted @ 2012-05-07 17:25 阿新 阅读(1142) 评论(0) 推荐(0)
摘要: 该例子添加UITableView编辑功能具体功能如下功能很简单但很实用@implementationAppDelegate@synthesizewindow=_window;@synthesizeviewController=_viewController;@synthesizenavigationController=_navigationController;@synthesizearray=_array;-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)la 阅读全文
posted @ 2012-05-04 11:39 阿新 阅读(3690) 评论(0) 推荐(0)
摘要: 目前最流行的跨平台交互是采用http协议通过JSON对象进行互操作。这种方式最简单,也很高效。webservice+xml的方式似乎已经过时。下面是我做的一个例子webapi的代码 View CodepublicIEnumerable<Product>GetAllProducts(){Console.WriteLine(DateTime.Now.ToLongTimeString()+":receiverequest.");returnnewList<Product>{newProduct(){Id=1,Name="Gizmo1", 阅读全文
posted @ 2012-04-06 10:22 阿新 阅读(8207) 评论(3) 推荐(4)
摘要: UsingSBJson, to convert a object to JSON string, you have to override theproxyForJsonmethod. Like the following,The .h file,@interface MyCustomObject : NSObject { NSString *receiverFirstName; NSString *receiverMiddleInitial; NSString *receiverLastName; NSString *receiverLastName2;}@property (non... 阅读全文
posted @ 2012-04-04 12:54 阿新 阅读(451) 评论(0) 推荐(0)
摘要: 最近因为项目需求,需要将一些自定义的类序列化为JSON,网上有很多好用的第三方序列化工具,但都只能自动序列化一些基本类型,如NSNumber,NSString与NSDictionary这种,没有一种第三方工具提供直接将自定义类序列化的方法(至少据我所知:),而对于这种序列化自定义的类的需求,网上能查到的方法只有将自定义的类手动的转存为一个NSDictionary,然后再使用第三方工具来序列化。例如对于一个类Foo,有如下定义:?1234567891011121314151617181920212223242526272829303132333435363738394041@interface 阅读全文
posted @ 2012-04-02 06:41 阿新 阅读(874) 评论(0) 推荐(0)
摘要: UIScrollView在开发中是一个非常常用的控件,UIScrollView具有水平、垂直滚动和缩放效果。但是尽然没有响应单击事件这个事件。而这个事件在日常的交互中是非常需要的。比如当用于单击或轻触图片的某个位置时,给于一些交互性提示。 下面我将用例子说明一下如何给UIScrollView添加一个单击的响应。 代码如下: 添加一个自定义的UIScrollView,命名:UITouchScrollView UITouchScrollView.h代码如下#import<Foundation/Foundation.h>@protocolUIScrollViewTouchesDelega 阅读全文
posted @ 2012-03-30 14:28 阿新 阅读(10781) 评论(0) 推荐(2)
摘要: 插上上网卡以后自动加载一个光盘映像 运行里面的程序把该装的都装了就可以了 至于那个系统自带的拨号程序 完全是废柴 打开网络设置 创建一个新服务 下拉菜单选择HUAWEIMobile Modem 创建 高级 厂商下拉选其他 型号选哪个问题都不大 好 配置这么写 电话号码 #777 账户名称 ctnet@mycdma.cn 密码 vnet.mobi 拨号成功 阅读全文
posted @ 2012-03-18 20:44 阿新 阅读(786) 评论(0) 推荐(0)
摘要: XCode4.2.1 使用NavigationController实现View切换现在网上有很多关于NavigationController实现页面之间导航,但是大部分都是老版本的实现方式,基于Window base application 模板实现,但新版本XCode 4.2.1没有这个模板,对于新手就算拿到源代码也不知道如何下手。老版本实现的NavigationController项目源代码 但是新版的没有这个模板比如Single view application的项目直接生存ViewController不带Window和 mainWindow.xib文件 修改AppDelegate... 阅读全文
posted @ 2012-02-16 16:56 阿新 阅读(9966) 评论(5) 推荐(6)
摘要: 1.AddInfo *control = [[AddInfo alloc] init]; [self presentModalViewController:control animated:YES]; [control release]; 描述:通过事件进行跳转 [self dismissModalViewControllerAnimated:YES]; 描述:通过事件进行返回。 2.[self.navigationController pushViewController:subTableViewController animated:YES]; 描述:通过 NSNavigat... 阅读全文
posted @ 2012-02-14 16:26 阿新 阅读(771) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 30 下一页