#import "CommodityCell.h"#import "UIImageView+WebCache.h"@implementation CommodityCell- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:...
分类:
其他好文 时间:
2015-01-21 22:07:00
阅读次数:
189
在需要给图片,图标等控件添加 点击效果,手势效果的UITapGestureRecognizer用法
直接看代码示例:
- (void)viewDidLoad {
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
UIImageView...
分类:
移动开发 时间:
2015-01-20 10:27:10
阅读次数:
198
//创建图片视图时就设定Frame的属性和大小 UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(60, 20, 80, 100)]; [img setImage:[UIImage imageNamed:@"mtxx.....
分类:
移动开发 时间:
2015-01-19 22:16:04
阅读次数:
270
iOS拍照方向问题,自己很长一段时间也不清楚,现在整理一下。三个问题:1. iPhone拍照时那个方向是正(UIImageOrientationUp) ?2. 为什么UIImageView方向显示正确,上传到服务器后却不正确 ?3. 如何调整方向?第一个问题:iPhone拍照究竟那个是正方向?(正方...
分类:
移动开发 时间:
2015-01-17 16:21:58
阅读次数:
566
具体功能:
在一个视图中有一个UIImageView,当长按UIImageView时,将UIImageView中的UIImage所代表的图片保存到PhotoAlbum中。
实现: 代码如下:self.imageView是定义的UIImageView视图属性
//长按效果
- (void)longPanGesture {
UILongPressGestur...
分类:
移动开发 时间:
2015-01-16 16:46:57
阅读次数:
156
#ViewController.m#import "ViewController.h"@interface ViewController ()/** * storybord连线 */@property (weak, nonatomic) IBOutlet UIImageView *imageVie....
分类:
移动开发 时间:
2015-01-15 23:34:53
阅读次数:
290
Make UINavigationBar transparent1、使用统一的背景图片在AppDelegate.swift中添加如下代码: var img=UIImage(named:"background.jpg") var imageView:UIImageView? self...
分类:
移动开发 时间:
2015-01-14 17:52:19
阅读次数:
195
//
// CarouselSrollView.m
// CarouselScrollerView
//
// Created by xiaoyao on 15/1/12.
// Copyright (c) 2015年 lijien. All rights reserved.
//
#import "CarouselSrollView.h"
#import "UIImageView+We...
分类:
其他好文 时间:
2015-01-13 17:51:02
阅读次数:
112
UIImaegView的图片拉伸可以通过storyboard或者xib设置UIButton不能通过storyboard或者xib设置,必须通过代码
分类:
其他好文 时间:
2015-01-13 17:27:36
阅读次数:
167
知识准备:UIbutton 和UIimageview的异同:相同点:》 都能显示图片不同点:》 UIButton默认情况就能监听点击事件,而UIImageView默认情况下不能 》 UIButton可以在不同状态下显示不同的图片 》 UIButton既能显示文字,又能显示图片如何选择...
分类:
移动开发 时间:
2015-01-09 12:16:40
阅读次数:
218