
UI控件
文章平均质量分 82
Star_Monkey
想起来上来写一点东西
展开
-
UI控件-----UIScrollView
UIScrollView 类负责所有基于 UIKit 的滚动操作。一、创建[java] view plaincopy 1. CGRect bounds = [ [ UIScreen mainScreen ] applicationFrame ] ; 2. UIScrollView* scrollView = [ [UIScrollView alloc原创 2015-09-04 03:07:35 · 419 阅读 · 0 评论 -
使用手势对UIImageView进行缩放、旋转和移动
// 添加所有的手势- (void) addGestureRecognizerToView:(UIView *)view{ // 旋转手势 UIRotationGestureRecognizer *rotationGestureRecognizer = [[UIRotationGestureRecognizer alloc] initWithTarget:self action原创 2016-06-28 18:05:42 · 564 阅读 · 0 评论 -
webView 属性方法大全
一、初始化与三种加载方式 UIWebView继承与UIView,因此,其初始化方法和一般的view一样,通过alloc和init进行初始化,其加载数据的方式有三种:第一种:- (void)loadRequest:(NSURLRequest *)request;这是加载网页最常用的一种方式,通过一个网页URL来进行加载,这个URL可以是远程的也可以是本地的,例如我加载原创 2016-07-26 10:59:34 · 3069 阅读 · 0 评论 -
Lab、TextView文字两端对齐(中英文、标点、空格换行)
网上找了半天大部分都有各种各样的毛病。。话不多说,先看效果代码附上:-(NSAttributedString *)setTextString:(NSString *)text{ NSMutableAttributedString *mAbStr = [[NSMutableAttributedStringalloc] initWithString:t原创 2017-04-10 17:11:38 · 1371 阅读 · 0 评论