`
zani
  • 浏览: 349465 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论

快速打印(NSLog)view的frame各个值的方法

 
阅读更多

NSLog(@”My view frame: %@”, NSStringFromCGRect(myView.frame));
 
分享到:
评论

相关推荐

    ios-UIExPickerView.zip

    UIExPickerView *pView = [[UIExPickerView alloc ] initWithFrame:CGRectMake(0, self.view.frame.size.height-200, self.view.frame.size.width, 200) arr:arr ]; pView.delegate = self; [self.view addSubview...

    ios地址和地区选择

    ck.frame = CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height); [ck initFrame]; [self.view addSubview:ck]; [ck setMeiNv:^(NSMutableArray *ary ) { NSLog(@"%@ == %@",ary[0],...

    ios-基于AVFoundation写的一个播放器,可发弹幕.zip

    self.video.view.frame= self.video.frame; self.video.videoUrl = @"http://120.25.226.186:32812/resources/videos/minion_02.mp4"; self.video.contrainerViewController = self; self.video.barrageData ...

    ios-图片轮播.zip

    CGRect frame = CGRectMake(0, 100, self.view.frame.size.width, 200); NSArray *imageArr = @[@"1.jpg",@"2.png",@"3.jpg",@"4.jpg",@"1.jpg",@"2.png",@"3.jpg",@"4.jpg",@"1.jpg",@"2.png",@"3.jpg",@"4....

    ios-下拉菜单.zip

    menu=[[DrawMenu alloc]initWithFrame:CGRectMake(26, self.applyType.frame.origin.y, _applyType.frame.size.width, CGRectGetHeight(_applyType.frame))]; menu.backgroundColor=[UIColor clearColor]; menu....

    ios-UITextView-可以和UITextField一样设置placeholder,支持autolayout布局,可以限制字数。.zip

    textView.frame = (CGRect){10,80,CGRectGetWidth(self.view.frame)-20,100}; textView.maxLength = 200; textView.layer.cornerRadius = 5.f; textView.layer.borderColor = [[UIColor grayColor]...

    UIScrollView定时滚动和循环滚动,可点击图片和PageController

    CGSize viewSize = headScrollView.frame.size; CGRect rect = CGRectMake((pageNum+2)*viewSize.width, 0, viewSize.width, viewSize.height); [headScrollView scrollRectToVisible:rect animated:NO]; ...

    ios开发记录

    //initWithNibName将控制器绑定xib的方法,如果xib的名称和控制器的类名称相同的时候,直接写init(会自动绑定同名的xib)就可以,如果xib的名称和类名称不同的话,必须手动调用此方法来进行绑定 ...

    ios-UI界面.zip

    拷贝SunSegmentedControl.h和SunSegmentedControl.m 在ViewController.m文件中实现 SunSegmentedControl *av=[[SunSegmentedControl alloc]initWithFrame:CGRectMake(0, 200, self.view.frame.size.width, 44)titles...

    iOS可控抽奖系统代码

    KZHLuckView *luckView = [[KZHLuckView alloc] initWithFrame:self.view.frame]; [self.view addSubview:luckView]; // 指定抽奖结果,对应数组中的元素 luckView.stopCount = 1; </code></pre> <p>block方式获取...

    ios-用一张ImageView实现无限轮播条(支持自动、点击).zip

    TranstionScrollView * banner =[[TranstionScrollView alloc]initWithFrame:CGRectMake( 0, 101,CGRectGetWidth(self.view.frame), 300) placeholder:[UIImage imageNamed:@"default"]]; [banner ...

    3D无限翻转的Banner

    SayGift_3DBanner_View *Banner_View = [[SayGift_3DBanner_View alloc]initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, 180)]; Banner_View.delegate = self; [Banner_View show3DBannerView]; ...

    ios-筛选控件。有标签和列表的形式展示.zip

    [[SQFiltrateView alloc]initWithFrame:CGRectMake(0, self.navigationController.navigationBar.frame.size.height [UIApplication sharedApplication].statusBarFrame.size.height, self.view.frame.size.width, ...

    ios-获取验证码按钮.zip

    let codeButton = XFetchCodeButton(frame: CGRect(x: 20, y: 100, width: 100, height: 50)) codeButton.backgroundColor = .black codeButton.normalTitle = "Fetch Code" codeButton.normalTintColor = ...

    ios-自定义时间选择器(自定义样式、时间、自动布局).zip

    使用方法: // 开始时间 [self setupDateView:DateTypeOfStart]; // 结束时间 [self setupDateView:DateTypeOfEnd]; - (void)setupDateView:(DateType)type { _pikerView = [HZQDatePickerView ...

    滚动广告的实现

    滚动广告的实现 CLHomeHeader *header = [[CLHomeHeader alloc] initWithFrame:CGRectMake(0, 100, self.view.frame.size.width, 200)]; header.newses = @[]; header.ImgW = self.view.frame.size.width; header...

    ios-自定义时间选择器(完美适配所有设备).zip

    _pikerView.frame = CGRectMake(0, 0, ScreenRectWidth, ScreenRectHeight 20); [_pikerView setBackgroundColor:[UIColor clearColor]]; _pikerView.delegate = self; _pikerView.type = type; ...

    iOS开发教程之UIView和UIViewController的生命周期详解

    前言 ...重写View的如下方法 @implementation YFView -(instancetype)init{ self = [super init]; NSLog(@%s, __func__); return self; } -(instancetype)initWithFrame:(CGRect)frame{ self =

    ios-自定义分享弹窗view(自动计算item).zip

    用法只要三句话 (动态增长item,不用管frame) 提供block 回调 1. WLZShareController *share =[[WLZShareController alloc]init]; 2. [share addItem:@"11" icon:@"WLZ_wechat" block:^(WLZBlockButton *btn) ...

Global site tag (gtag.js) - Google Analytics