• 不能在IB中调整UIView的大小

    时间:2023-01-22 18:00:32

    Probably something simple, but I can't figure why I cannot resize a UIView in a xib in Interface Builder. 可能很简单,但是我不明白为什么不能在接口构建器的xib中调整UIView的大小。 I ...

  • iOS- 自定义UIView (测试block和代理)

    时间:2023-01-20 03:25:46

    #import <UIKit/UIKit.h>typedef void(^compeletionHandler) (NSInteger selectButtonIndex);@class ZSDCustom;@protocol ZSDCustomDelegate <NSObject...

  • UIScreen UIWindow UIView

    时间:2023-01-18 09:05:08

    UIScreen(屏幕),UIWindow(窗口),UIView(视图)是IOS的几个基本界面元素。其中UIWindow(窗口)和UIView(视图)是为iPhone应用程序构造用户界面的可视组件。UIWindow为内容显示提供背景平台,UIView负责绝大部分的内容描画,并负责响应用户的交互。1....

  • 你如何覆盖UIView的+(id)层;类方法?

    时间:2023-01-13 09:07:52

    I read in the documentation that a UIView's 'layer' property is read only and that you must override UIView's 我在文档中读到UIView的'layer'属性是只读的,你必须覆盖UIView...

  • 如何将透视转换应用到UIView?

    时间:2023-01-12 23:30:59

    I'm looking to perform a perspective transform on a UIView (such as seen in coverflow) 我希望在UIView上执行透视图(如在coverflow中看到的) Does anyonew know if this is ...

  • IOS开发-CALayer和UIView详细汇总

    时间:2022-12-27 23:14:27

    1.    CALayer和UIView之间的关系:  在iOS系统中,你能看得见摸得着的东西基本上都是UIView,比如UI控件、图标等等,都是UIView。  其实UIView之所以能显示在屏幕上,完全是因为它内部的一个层(CALayer)。  在创建UIView对象时,UIView内部会自...

  • iOS企业级开发初级课程-UIView与控件(20集)

    时间:2022-12-27 13:29:12

    UIView与控件向大家介绍了视图和控件之间的关系以及应用画面的建构层次。然后是对标签、按钮、文本框、文本视图、开关、滑块、分段控件、网页控件、屏幕滚动控件、等待控件、进度条、警告、动作选单、工具栏、导航栏等基本控件的介绍。接下来是屏幕布局的内容。然后我们向大家介绍了一个较为复杂的控件—拨选器,最后...

  • Xcode9学习笔记8 - UIView视图添加阴影效果

    时间:2022-12-26 22:29:34

    override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. ...

  • 详解 CALayer 和 UIView 的区别和联系

    时间:2022-12-18 21:12:10

    http://www.cocoachina.com/ios/20150828/13244.html作者:@武蕴牛x 授权本站转载。前言前面发了一篇iOS 面试的文章,在说到 UIView 和 CALayer 的区别和联系的时候,被喵神指出没有切中要点,所以这里就 CALayer 和 UIView 这...

  • UIView的背景颜色

    时间:2022-12-16 21:35:54

    一个UIColor代表一种颜色,通过UIColor的类方法,可以获得很多常用的颜色+ (UIColor *)blackColor;      // 0.0 white 黑色+ (UIColor *)darkGrayColor;   // 0.333 white 深灰色+ (UIColor *)lig...

  • 关于UIView布局的总结

    时间:2022-11-30 20:13:20

    总结一下布局UIView1.Laying out Subviews(布局子视图)系统提供了相关的三个api- (void) layoutSubviews在IOS5.1和之前的版本,此方法的缺省实现不会做任何事情(实现为空),IOS5.1之后(IOS6开始)的版本,此方法的缺省实现是使用你设置在此vi...

  • 在UIView(iPhone)中逐步绘制

    时间:2022-11-26 14:58:12

    As far as I have understood so far, every time I draw something in the drawRect: of a UIView, the whole context is erased and then redrawn. 据我所知,到目前为止...

  • 在UITableView Swift中点击单元格时,使用UIView创建弹出窗口

    时间:2022-11-21 21:25:17

    I have a tableview and if a cell is tapped on the tableview, I want to create a UIView to pop up over the tableview and display the contents in the ta...

  • [BS-26] UIView、pop和Core Animation区别

    时间:2022-11-18 05:27:59

    UIView、pop和Core Animation区别一、UIView、pop和Core Animation的主要区别1. Core Animation的动画只能添加到layer上(layer.position和view.frame类似)2. pop的动画能添加到任何对象3. pop的底层并非基于C...

  • 详解CALayer 和 UIView的区别和联系

    时间:2022-11-17 17:33:52

    详解CALayer 和 UIView的区别和联系 前言前面发了一篇iOS 面试的文章,在说到 UIView 和 CALayer 的区别和联系的时候,被喵神指出没有切中要点,所以这里就 CALayer 和 UIView 这个问题重新整理了下。这里会先分条解释,最后会在文章的结尾给出概括性总结。1.首先...

  • 如何在第二台uibutton印刷机上反转UIVIew动画?

    时间:2022-11-06 00:20:38

    I have a method that drops down a UIView. That works fine. How would I go about having it slide back up when the button is touched a second time? 我有一个...

  • 如何控制UIView动画的速度?

    时间:2022-11-06 00:16:02

    I am implementing a rotating digit view like this: https://github.com/jonathantribouharet/JTNumberScrollAnimatedView 我正在实现这样的旋转数字视图:https://github.com...

  • 如何在viewDidAppear中向UIView添加动画?

    时间:2022-11-06 00:15:44

    I tried to add a animation to viewDidLoad and viewDidAppear, but it doesn't work: 我试图向viewDidLoad和viewDidAppear添加动画,但它不起作用: - (void)viewDidAppear:(BOO...

  • 如何停止和反转UIView动画?

    时间:2022-11-06 00:11:08

    I have animated a UIView so that it shrinks when the user touches a toggle button and it expands back to its original size when the user touches the b...

  • 使用BOOL /完成块停止自动反转/无限重复UIView动画

    时间:2022-11-06 00:11:14

    I'm setting up the following UIView animateWithDuration: method, with the intention of setting my animationOn BOOL elsewhere in the program to cancel ...