ios初体验
Angelagyy_123
这个作者很懒,什么都没留下…
展开
-
UIWebview点击图片实现大图浏览
UIWebView不响应点击事件,需要加上手势识别。 UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(tapAction:)]; tap.delegate = self; tap.cancelsTouchesInView =原创 2015-03-27 17:18:39 · 518 阅读 · 0 评论 -
search Bar and Search Display Controller的使用
search Bar and Search Display Controller是ios自带的有动画效果的搜索栏,与tableView配合使用效果很好。在xib或storyboard中拖一个tableView和search Bar and Search Display Controller,连接delegate和data source。实现UISearchBarDelegate:原创 2015-03-31 11:05:42 · 2637 阅读 · 1 评论 -
ios的webView加载本地html图片路径显示及webview适配
在ios中,如果需要用到UIWebView,加载本地html,在本地html中,需要显示图片,路径显示的问题。loadHTMLString时,将baseURL改为图片路径,在html文件中img标签直接改为图片名字即可。 NSString *resPath = [[NSBundle mainBundle] resourcePath]; NSString原创 2015-03-31 16:54:29 · 4282 阅读 · 0 评论