08 2015 档案

摘要:输入输出命令:输入函数scanf:在控制台接收指定格式的键盘输入,并将输入内容置于指定变量内存地址中;【格式:scanf(“格式化说明符”, 指定变量内存地址);】 格式: scanf(“%d”,&x);注意:scanf()语句中不要加\n换行符号。输入函数getchar:在控制台接收单个字符输入,... 阅读全文
posted @ 2015-08-31 18:10 CheungSir 阅读(482) 评论(0) 推荐(0)
摘要:1.UIControlEventTouchDown 单点触摸按下事件:用户点触屏幕,或者又有新手指落下的时候。2.UIControlEventTouchDownRepeat 多点触摸按下事件,点触计数大于1:用户按下第二、三、或第四根手指的时候。3.UIControlEventTouchDrag... 阅读全文
posted @ 2015-08-31 11:20 CheungSir 阅读(286) 评论(0) 推荐(0)
摘要:1. minimumValue: 当值可以改变时,滑块可以滑动到最小位置的值,默认为0.0 _slider.minimumValue = 10.0; 2. maximumValue: 当值可以改变时,滑块可以滑动到最大位置的值,默认为1.0 _slider.maximumValue = 100... 阅读全文
posted @ 2015-08-26 10:04 CheungSir 阅读(130) 评论(0) 推荐(0)
摘要:1. text:设置textView中文本 _textView.text = @"Now is the time for all good developers to come to serve their country.\n\nNow is the time for all good deve... 阅读全文
posted @ 2015-08-22 11:45 CheungSir 阅读(202) 评论(0) 推荐(0)
摘要:0.enablesReturnKeyAutomatically 默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的。1.borderStyle 设置边框样式,只有设置了才会显示边框样式 1 text.borderStyle = UITextBord... 阅读全文
posted @ 2015-08-22 10:23 CheungSir 阅读(209) 评论(0) 推荐(0)
摘要:1. numberOfPages // 设置有多少页 默认为0 // 2) 设置页数 [pageControl setNumberOfPages:kImageCount];2. currentPage // 设置当前页 [pageControl setCurrentPage:0];3. pag... 阅读全文
posted @ 2015-08-21 12:05 CheungSir 阅读(125) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-08-19 15:26 CheungSir 阅读(173) 评论(0) 推荐(0)
摘要:0. indicating 决定1.in order to 以便2.rectangle bounds 矩形尺寸3.applied 应用4.entirety 全部5.technique 方法6.truncating 截短7.wrapping 换行8.string 字符串9.familiar style... 阅读全文
posted @ 2015-08-19 15:08 CheungSir 阅读(148) 评论(0) 推荐(0)
摘要:1. onTintColor 处于on时switch的颜色switchImage.onTintColor=[UIColorgrayColor];2.tintColor 处于off时switch的颜色switchImage.tintColor=[UIColorgreenColor];3.onImage... 阅读全文
posted @ 2015-08-19 14:41 CheungSir 阅读(392) 评论(0) 推荐(0)
摘要:1.Image 设置图片,默认显示UIImageView *_imageView = [[UIImageView alloc]init];_imageView.image = [UIImage imageNamed:@"me.png"]; 2.highlightedImage 设置高亮状态下显... 阅读全文
posted @ 2015-08-19 14:35 CheungSir 阅读(180) 评论(0) 推荐(0)
摘要:1.alpha设置视图的透明度.默认为1. // 完全透明 view.alpha = 0; // 不透明 view.alpha = 1;2.clipsToBounds // 默认是NO,当设置为yes时,超出当前视图的尺寸的内容和子视图不会显示。 view.clipsToBo... 阅读全文
posted @ 2015-08-17 12:47 CheungSir 阅读(168) 评论(0) 推荐(0)
摘要:1、contentOffset 默认CGPointZero,用来设置scrollView的滚动偏移量。// 设置scrollView的滚动偏移量scrollView.contentOffset = CGPointMake(0, 200);2、contentSize 默认CGSizeZero,用来... 阅读全文
posted @ 2015-08-17 11:22 CheungSir 阅读(150) 评论(0) 推荐(0)
摘要:1、text:设置标签显示文本。lable.text = @"123";2、attributedText:设置标签属性文本。//Ios代码 NSString *text = @"first";NSMutableAttributedString *textLabelStr = [[NSMutableA... 阅读全文
posted @ 2015-08-17 10:44 CheungSir 阅读(242) 评论(0) 推荐(0)