码迷,mamicode.com
首页 >  
搜索关键字:bounds    ( 955个结果
两种自定义系统弹出键盘上方的view
我们在很多的应用中,都可能会遇到,在弹出的键盘上方的view,添加一些控件来作辅助功能,下面我通过2种情况来介绍:// 屏幕的物理高度 #define ScreenHeight [UIScreen mainScreen].bounds.size.height // 屏幕的物理宽度 #define ScreenWidth [UIScreen mainScreen].bounds.size...
分类:其他好文   时间:2014-08-19 19:06:05    阅读次数:332
ios 获取屏幕的属性和宽度
1.app尺寸,去掉状态栏 CGRect r = [ UIScreen mainScreen ].applicationFrame; r=0,20,320,460 另外:self.view.bounds.size 2.屏幕尺寸 CGRect rx = [ UIScreen mainScreen ].bounds; r=0,0,320,480 3.状态栏尺寸 C...
分类:移动开发   时间:2014-08-14 23:54:06    阅读次数:267
c# 截屏代码
public static byte[] GetScreen1() { //截取屏幕内容 Size screen = new Size(Screen.PrimaryScreen.Bounds.Width, Screen.PrimaryScreen.Bounds.Height); Bitmap memory...
分类:其他好文   时间:2014-08-14 16:43:18    阅读次数:195
常见错误
英文参考译文Ambiguous operators need parentheses不明确的运算需要用括号括起Ambiguous symbol ''xxx''不明确的符号Argument list syntax error参数表语法错误Array bounds missing丢失数组界限符Array...
分类:其他好文   时间:2014-08-12 21:22:14    阅读次数:185
UIWebView控件
用处:实现一个web浏览器,加载静态html,动态url,调用js//加载动态urlself.webView = [[UIWebView alloc]initWithFrame:self.view.bounds];NSString *str = @"http://www.baidu.com";NSU...
分类:Web程序   时间:2014-08-11 17:16:32    阅读次数:237
UIView常见属性总结
一 UIVIew 常见属性1.frame 位置和尺寸(以父控件的左上角为原点(0,0))2.center 中点 (以父控件的左上角为原点(0,0))3.bounds 位置和尺寸(以自己的左上角为原点 (0,0))4.transform 形变属性(缩放,旋转)5.backgroundColor 背景颜...
分类:其他好文   时间:2014-08-09 18:16:29    阅读次数:216
【IOS】iphone 5s UIImagePickerController未全屏问题
今天做到5s打开自定义相机时 ?取景无法全屏问题 ?如下图 添加以下代码可以解决问题 ?将取景框变成全屏 ????????{ ????????????CGSize?screenBounds?=?[UIScreen?mainScreen].bounds....
分类:移动开发   时间:2014-08-07 16:00:11    阅读次数:499
UIKit 小结
nsobject--uiresponder--uiviewuiresponder类定义了一些操作uiview有三个属性: frame, bounds, centercenter用于改变控件位置, bounds 用于改变控件大小UILabel控件:类似于c#的label。CGRect frame = ...
分类:其他好文   时间:2014-08-06 14:16:01    阅读次数:196
uitableView 滚到底部判断
- (void) scrollViewDidScroll:(UIScrollView *)scrollView{ CGPoint offset = scrollView.contentOffset; // 当前滚动位移 CGRect bounds = scrollView.bounds...
分类:其他好文   时间:2014-08-05 15:32:49    阅读次数:207
常用的宏
//获取屏幕 宽度、高度#define SCREEN_WIDTH ([UIScreen mainScreen].bounds.size.width)#define SCREEN_HEIGHT ([UIScreen mainScreen].bounds.size.height)//获取系统版本#def...
分类:其他好文   时间:2014-08-05 10:43:39    阅读次数:250
955条   上一页 1 ... 89 90 91 92 93 ... 96 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!