我们在很多的应用中,都可能会遇到,在弹出的键盘上方的view,添加一些控件来作辅助功能,下面我通过2种情况来介绍:// 屏幕的物理高度
#define ScreenHeight [UIScreen mainScreen].bounds.size.height
// 屏幕的物理宽度
#define ScreenWidth [UIScreen mainScreen].bounds.size...
分类:
其他好文 时间:
2014-08-19 19:06:05
阅读次数:
332
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
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
用处:实现一个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 常见属性1.frame 位置和尺寸(以父控件的左上角为原点(0,0))2.center 中点 (以父控件的左上角为原点(0,0))3.bounds 位置和尺寸(以自己的左上角为原点 (0,0))4.transform 形变属性(缩放,旋转)5.backgroundColor 背景颜...
分类:
其他好文 时间:
2014-08-09 18:16:29
阅读次数:
216
今天做到5s打开自定义相机时 ?取景无法全屏问题 ?如下图 添加以下代码可以解决问题 ?将取景框变成全屏 ????????{
????????????CGSize?screenBounds?=?[UIScreen?mainScreen].bounds....
分类:
移动开发 时间:
2014-08-07 16:00:11
阅读次数:
499
nsobject--uiresponder--uiviewuiresponder类定义了一些操作uiview有三个属性: frame, bounds, centercenter用于改变控件位置, bounds 用于改变控件大小UILabel控件:类似于c#的label。CGRect frame = ...
分类:
其他好文 时间:
2014-08-06 14:16:01
阅读次数:
196
- (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