简体   繁体   English

iOS中的ContentView V / S SuperView?

[英]ContentView V/S SuperView in iOS?

Well I am newbie, to iOS Application Development. 我是iOS应用程序开发的新手。 I am reading through some reference to develop my application. 我正在阅读一些参考资料以开发我的应用程序。 https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIVisualEffectView/index.html#//apple_ref/occ/instp/UIVisualEffectView/contentView https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIVisualEffectView/index.html#//apple_ref/occ/instp/UIVisualEffectView/contentView

I am familiar with the concept of Super View and Sub View from View Hierarchy with iOS. 我熟悉使用iOS的“视图层次结构”中的“超级视图”和“子视图”的概念。 But I am confused with the term "ContentView" of the view. 但是我对视图的“ ContentView”一词感到困惑。 Does it mean the view itself or SuperView of that view ? 它是视图本身还是该视图的SuperView?

Please describe how to know what is contentView of the view ? 请描述如何知道视图的contentView是什么?

Well, contentView usually means the main/major view inside something. 好吧,contentView通常表示某事物内部的主视图/主视图。

In this context it means the view to which effect can be added which is synonym to contentView. 在这种情况下,它意味着可以添加效果的视图,它是contentView的同义词。

In UIScrollView, the word content refers to the main scrollable view in it. 在UIScrollView中,单词content指的是其中的主可滚动视图。 (just so you understand) (只是为了您了解)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何在iOS中获得UIView的超级视图的UIViewController? - How to get UIViewController of a UIView's superview in iOS? 如何在Superview的视图中插入视图? (iOS) - How to Insert View in Superview's View? (iOS) 在Superview的范围内移动视图(iOS) - Move view within superview's bounds (iOS) superview的手势是否应取消iOS 7中子视图的手势? - Should superview's gesture cancel subview's gesture in iOS 7? 无法在iOS 7.1中的UITableViewCell的contentView上设置clipToBounds - Cannot set clipToBounds on UITableViewCell's contentView in iOS 7.1 将按钮单击上的值从UIView发送到其超级视图的超级视图(UIViewController)-iOS - Sending value on Button click from UIView to its superview's superview(UIViewController) -iOS 在 iOS 上,如果超级视图的 userInteractionEnabled 为 NO,那么所有子视图也会被禁用? - On iOS, if a superview's userInteractionEnabled is NO, then all subviews are disabled as well? iOS-UITableView的超级视图覆盖了应用程序进入前景时的屏幕 - iOS - UITableView's superview covers the screen when app enters foreground ios-在其子视图中动画化子视图的动作 - ios - Animate subView's movements inside its superView Swift iOS - 如何在单元格的超级视图中获取按钮框架 - Swift iOS -How to get frame of button inside cell's superView
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM