UIImageView *imgView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"image_left"]]; imgView.frame = CGRectMake(0, 0, 20, 20); _textF...
分类:
其他好文 时间:
2015-04-08 17:56:35
阅读次数:
107
- (void)viewDidLoad {
[super
viewDidLoad];
//初始化一个加载图片的试图
imageview=[[UIImageView
alloc]initWithFrame:CGRectMake(0,
50, self.view.frame.size.width,
self.view.frame.size.height-100)]...
分类:
移动开发 时间:
2015-04-06 18:49:30
阅读次数:
137
-(void)setTextView{UIView*view=[[UIViewalloc]initWithFrame:CGRectMake(0,528,320,40)];view.backgroundColor=[UIColorlightGrayColor];view.tag=100;[self.viewaddSubview:view];[viewrelease];UIImageView*p_w_picpathView1=[[UIImageViewalloc]initWithFrame:CGRectMake(..
分类:
其他好文 时间:
2015-04-06 11:34:26
阅读次数:
139
SDWebImage的使用 1.导入文件SDWebImage; 2.在工程中-->Build Phases-->Compile Scources-->搜索SDWebImage; 3.全选并在后面加上“-fno-objc-arc”; 4.导入头文件#import "UIImageView+We...
分类:
Web程序 时间:
2015-04-04 18:11:47
阅读次数:
146
UIImageView的创建(React Native)...
分类:
其他好文 时间:
2015-04-04 10:45:39
阅读次数:
166
应用程序毛玻璃蒙版保护账户信息(如支付宝)先说说实现的的思路:当程序即将进入后台时,把当前屏幕截个图,此时要将图片毛玻璃化,并作为UIImageView的image,然后将imageView放在window的最上面,等即将进入前台时移除毛玻璃蒙版。下面就来说代码实现吧(在代理文件中实现):123@i...
分类:
其他好文 时间:
2015-04-03 19:10:03
阅读次数:
168
#import "ViewController.h"@interface ViewController ()@property (weak, nonatomic) IBOutlet UIImageView *tomImageView;@end@implementation ViewControlle...
分类:
移动开发 时间:
2015-04-02 20:38:42
阅读次数:
137
UITouch1.UITouch *touch = [touches anyObject];//找到触摸事件 if([touch.view isKindOfClass:[UIImageView class]]){ CGPoint point = [touch locationInView:self....
分类:
其他好文 时间:
2015-04-02 20:35:14
阅读次数:
199
//比如创建一个UIImageView到view上UIImageView *imageView = [[UIImageView allc] init];imageView.tag = 10001; //需要设置一个tag [self.view addSubView:imageView];//在别.....
分类:
移动开发 时间:
2015-04-02 13:12:14
阅读次数:
162
#import typedef NS_ENUM(NSInteger, EcolorDirectionType){ EcolorDirectionUp, //上 EcolorDirectionDown, //下 EcolorDirectionRight, //右 Eco...
分类:
其他好文 时间:
2015-04-01 19:51:30
阅读次数:
121