2015年9月11日
摘要:
mark! UIwebview 通过jquery 和用户交互信息:[objc]view plaincopyNSstring*html=@"阿速度发送地方1.asdfasdfasdfasdfasdfasdf2.asdfasdfasdfasdfasdfasdf3.asdfasdfasdfasdfasdf...
阅读全文
posted @ 2015-09-11 16:45
廖利君
阅读(167)
推荐(0)
2015年9月10日
摘要:
DKNightVersion is a lightweight iOS framework adding night mode/theme to your iOS app.https://github.com/Draveness/DKNightVersion
阅读全文
posted @ 2015-09-10 18:07
廖利君
阅读(202)
推荐(0)
摘要:
根据光线感应关闭和开启屏幕UIDevice *_curDevice = [UIDevice currentDevice]; [_curDevice setProximityMonitoringEnabled:YES]; NSNotificationCenter *_defaultCenter =...
阅读全文
posted @ 2015-09-10 18:06
廖利君
阅读(242)
推荐(0)
摘要:
//邮箱+ (BOOL)checkEmail:(NSString *)email{ NSString *emailRegex = @"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}"; NSPredicate *emailTest = [NSP...
阅读全文
posted @ 2015-09-10 14:20
廖利君
阅读(176)
推荐(0)
2015年9月9日
摘要:
iOS开发者:开发几个常用的开源类库及下载地址:算上这个连接:http://wenku.baidu.com/view/bbeb0091dd88d0d233d46a00.html1.jsonjson编码解码2.GTMBase64base64编码解码3.TouchXMLxml解析4.SFHFKeycha...
阅读全文
posted @ 2015-09-09 16:43
廖利君
阅读(198)
推荐(0)
摘要:
1、 NSInter len = [textView.text Length];//统计出来的就是不管输入的是英文还是中文,都是得到实际文字的个数。2、 NSInter len = [textView.text lengthOfBytesUsingEncoding:NSUnicodeStringEn...
阅读全文
posted @ 2015-09-09 15:38
廖利君
阅读(148)
推荐(0)
摘要:
IOS平台第三方插件开发指导插件开发http://ask.dcloud.net.cn/docs#http://ask.dcloud.net.cn/article/67 原出技术架构HTML5+ 基座扩展采用三层结构,JS层、PluginBridge层和Native层。 三层功能分别是:JS层: 在W...
阅读全文
posted @ 2015-09-09 15:23
廖利君
阅读(2832)
推荐(0)
摘要:
先声明一下,下面用到的方法是本人已经过实际运行达到预期效果后的总结,诸位在参考时可少走一些弯路,放心尝试。我们所要达到的预期效果是,用UIWebView加载网页,长按某单词后弹出我们自定义的菜单栏,不显示系统本身自带的,点击某一菜单进行对应的处理。首先,先自定义需要的菜单栏UIMenuControl...
阅读全文
posted @ 2015-09-09 15:20
廖利君
阅读(246)
推荐(0)
摘要:
//正式服务器#define API_DOMAIN @"www.online.com"//测试服务器//#define DOMAINXX @"192.168.0.10"#define API_SYSTEM @"http://"API_DOMAIN@"/system/"#define API_USER...
阅读全文
posted @ 2015-09-09 15:14
廖利君
阅读(203)
推荐(0)
摘要:
UIButton实现背景拉伸,即图片两端不拉伸中间拉伸的办法有如下两种:第一种方法很简单而且使用性更广。做法就是直接拉伸想要setBackgroundImage的image,代码如下:UIImage*image=[UIImageimageNamed:@"image.png"];image=[imag...
阅读全文
posted @ 2015-09-09 15:03
廖利君
阅读(211)
推荐(0)