摘要: 转载自:http://www.devzeng.com/blog/ios-uiwebview-interaction-with-javascript.html还可参考的文章:http://blog.csdn.net/lwjok2007/article/details/47058101在iOS开发中很多... 阅读全文
posted @ 2015-11-26 09:47 CodingMann 阅读(1265) 评论(0) 推荐(0) 编辑
摘要: https://github.com/beecloud/beecloud-ios 阅读全文
posted @ 2015-11-23 14:44 CodingMann 阅读(360) 评论(0) 推荐(0) 编辑
摘要: //详细操作步骤http://www.csdn.net/article/2015-01-23/2823686-healthkit-tutorial-with-swift//官方apihttps://github.com/WildDylan/appleSample 阅读全文
posted @ 2015-11-20 13:46 CodingMann 阅读(180) 评论(0) 推荐(0) 编辑
摘要: -(BOOL)tableView:(UITableView*)tableViewcanEditRowAtIndexPath:(NSIndexPath*)indexPath{returnYES;}-(void)tableView:(UITableView*)tableViewcommitEditing... 阅读全文
posted @ 2015-11-19 15:55 CodingMann 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 对于iOS的app开发者来说,不会像Android开发者一样为很多的屏幕尺寸来做界面适配,因此硬编码的坐标也能工作良好,但是从设计模式上来说这不是好的做法。而且也还有一些问题,如iPhone5的适配,横竖屏的切换等。或许你可以做两套UI方案来做适配,但是这样增加重复工作量,而且不够高端,万一有出新的... 阅读全文
posted @ 2015-11-19 13:17 CodingMann 阅读(210) 评论(0) 推荐(0) 编辑
摘要: UILongPressGestureRecognizer*lpgr=[[UILongPressGestureRecognizeralloc]initWithTarget:selfaction:@selector(handleLongPress:)];lpgr.minimumPressDuration... 阅读全文
posted @ 2015-11-09 10:15 CodingMann 阅读(1017) 评论(0) 推荐(0) 编辑
摘要: http://123.th7.cn/list/list_33_1.html 阅读全文
posted @ 2015-11-06 15:21 CodingMann 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1.定义一个字符串a, 截取a 的某一个项目组,复制给b, b必须是int型NSString*a =@"1.2.30";intb= [[asubstringWithRange:NSMakeRange(4,2)]intValue];NSLog(@"a:%@\n",a);NSLog(@"b:%d",b)... 阅读全文
posted @ 2015-11-05 16:25 CodingMann 阅读(502) 评论(0) 推荐(0) 编辑
摘要: 图片轮播器 在很多应用软件中都有应用 ,需要制作 无限滚动的 ,下面贴上自己写的小Demo, 能实现相关的功能。Ps: 没有用到pageControl ,只是图片自动无限滚动 ,没有任何的 处理 。#import"ViewController.h"@interfaceViewController :... 阅读全文
posted @ 2015-11-05 10:55 CodingMann 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 首先要导入头文件#import "UIKit+AFNetworking.h"方法如下:[personImageView setImageWithURL:[NSURL URLWithString:imageUrlString] placeholderImage:[UIImage imageNamed:... 阅读全文
posted @ 2015-10-27 11:12 CodingMann 阅读(217) 评论(0) 推荐(0) 编辑