UIButton 设置偏移@propery titleEdgeInsets@propery imageEdgeInsets@propery contentEdgeInsets@propery contentHorizontalAlignment初始化Button1 UIButton *...
分类:
其他好文 时间:
2015-05-18 20:18:44
阅读次数:
286
摘自:欧阳大神的UI教学视频UIButton 的类型1、UIButtonTypeRoundedRect 圆角按钮2、UIButtonTypeDetailDisclosure 详情按钮3、UIButtonTypeContactAdd 加号按钮4、UIButtonTypeInfoDark 白色信息按钮5...
分类:
其他好文 时间:
2015-05-17 15:01:26
阅读次数:
96
#import "ViewController.h"#define TextFieldFrame CGRectMake(0, 100, 100, 30)@interface ViewController ()@property (nonatomic, strong) UIButton *lef...
分类:
其他好文 时间:
2015-05-17 12:03:08
阅读次数:
125
UISegmentedControl控件是分段显示控件,用户可以选择它上展示的任一段部分,每一个部分都像是一个按钮,如果被按下也会像UIButton一样执行相应的方法。在这篇文章中我们将创建一个UISegmentedControl控件并让它显示三个部分,每一个部分都会显示不同的文本内容。需要的条件:...
分类:
编程语言 时间:
2015-05-15 21:16:07
阅读次数:
227
- (id)readViewControllerFromStoryBoardWithIdentifier:(NSString *)identifier{ return [[UIStoryboard storyboardWithName:@"ELVStoryBoard" bundle:nil] in....
分类:
其他好文 时间:
2015-05-15 19:34:04
阅读次数:
100
Transition:过度,执行一些过度动画,比如两个界面切换的时候,push就是一种过度动画模拟翻书效果:通过按钮模拟左右滑动,index标记当前的图片的下标名#pragma make 上一张- (IBAction)previous:(UIButton *)sender { self...
分类:
其他好文 时间:
2015-05-15 13:28:35
阅读次数:
164
-(void)checkboxClick:(UIButton *)btn{btn.selected = !btn.selected;}- (void)viewDidLoad {UIButton *checkbox = [UIButton buttonWithType:UIButtonTypeCust...
分类:
移动开发 时间:
2015-05-14 18:04:02
阅读次数:
122
@interface ViewController () { UIView *animationView; UIButton *button; CGPoint animationPoint;}@end初始化button和动画的view- (void)viewDidLoad { ...
分类:
移动开发 时间:
2015-05-14 13:36:47
阅读次数:
171
上篇文章实现了一个使用UIImageView\UILabel\UIButton实现一个综合的小的图片浏览器,虽然能实现功能,但是代码有很大的问题,这里进行第一次改进:将代码中重复性的代码进行封装,封装成一个方法,用用户点击按钮时,调用点击按钮的响应方法,这个方法中直接调用封装的这个方法. 下面...
分类:
其他好文 时间:
2015-05-13 16:12:17
阅读次数:
122
原文 Visual Studio跨平台开发实战(2) - Xamarin.iOS基本控制项介绍前言在上一篇文章中, 我们介绍了Xamarin 以及简单的HelloWorld范例, 这次我们针对iOS的专案目录架构以及基本控制项进行说明. 包含UIButton,, UISlider, UISwitch...
分类:
移动开发 时间:
2015-05-12 15:14:00
阅读次数:
272