- 博客(12)
- 收藏
- 关注
原创 textView中的placeholderLabel
_explainView = [[UITextViewalloc]init]; // _explainView.backgroundColor = [UIColor colorWithRed:236.0/255 green:241.0/255 blue:238.0/255 alpha:1]; _explainView.backgroundColor =
2016-08-31 16:30:16 336
原创 UITextView
_textView = [[UITextViewalloc]init]; _textView.backgroundColor = [UIColorwhiteColor]; _textView.delegate =self; [cell.contentViewaddSubview:_textView];
2016-08-30 15:44:16 189
原创 有关tag值
这个问题很简单,我现在用到了,声明两个tableview,给每个tableview设定tag,假定为1,2,然后在deleget 和Datesoure里边进行初始化得时候对tag进行判断,然后就可以进行相应得操作了,希望可以帮到楼主。 实例: tableveiwA tag=0; tableveiwB tag =1; - (NSInteger)numberOfSectionsIn
2016-08-27 10:23:22 1348
原创 按钮的点动效果
iOS (UIButton封装)仿糯米首页缩放“按钮”效果字数1203 阅读4018 评论39 喜欢120前言过年期间,少不了各种聚会,当下聚会大多数情况下自然是团购,然后就是用各种APP。。。使用度娘糯米时(不是广告,不是广告,不是广告!),偶然注意到了它的首页中一个有意思的效果,就是那些“按钮”点击时的缩放动画,有一种“按下去”的赶脚,恰逢前阵子做过一个录音按钮的“
2016-08-25 18:32:01 1832
原创 ios中循环按钮的创建
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. float x = 20; float y = 100; float w = 30; float
2016-08-25 17:48:36 1082
原创 招骋地址弹出按钮
#import "addressPopViewController.h"#import #import "addresspopviewCell.h"#import "InterViewController.h"#import "UIImageVIew+Tap.h"@interface addressPopViewController ()UICollectionViewData
2016-08-24 15:55:08 210
原创 UIPresentationController
-(void)clickAdrress:(UIButton *)sender{ NSLog(@"点击地址弹出控制器"); _addressPopone = [addressPopViewControllernew]; _addressPopone.view.backgroundColor = [UIColorclearColor];
2016-08-19 16:30:40 235
原创 UIPresentationController
#import @interfaceViewController : UIViewController @end————————————————————————————————————————————————————————————————————————————————————————————#import "Vie
2016-08-19 14:29:09 293
原创 iOS中UIPopoverPresentationController的用法
#import "ViewController.h" 2 #import "contentViewController.h"//内容视图控制器 3 #import "AAViewController.h"//点击popover交互推出的控制器 4 5 6 @class AAViewController; 7 @interface ViewController () 8 { 9
2016-08-18 17:37:21 1874
原创 textView的placeholder的书写
-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{ if ([text isEqualToString:@"\n"]) {//检测到“完成” [textView resignFirstResp
2016-08-15 16:42:11 182
原创 关于GCD
GCD是和block紧密相连的,所以最好先了解下block, GCD是C level的函数,这意味着它也提供了C的函数指针作为参数,方便了C程序员.下面首先来看GCD的使用:dispatch_async(dispatch_queue_t queue, dispatch_block_t block);async表明异步运行,block代表的是你要做的事情,queue则是你
2016-08-06 16:11:29 267
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人