iphone开发如何通过uiview获得他的uiviewcontroller
2个回答
展开全部
看了一下UIView的API,好像 没有你要找的东西.
反过来想一下, 从MVC结构来看,UIView是V,
我们习惯上操作V的时候 ,一般是从C来操作V的,
所以, 从这个角度上讲,你的问题,可能 不太合MVC的风格.
另外, 想UIView的子类,比如UIButton啦,UILabel之类的, 明显它没有相应的Controller,
对吧
UIVIEW api:
1 UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY
2 CLICK HERE
2.1 Tasks
2.1.1 Creating Instances
2.1.2 Setting and Getting Attributes
2.1.3 Modifying the Bounds and Frame Rectangles
2.1.4 Converting Coordinates
2.1.5 Resizing Subviews
2.1.6 Managing the View Hierarchy
2.1.7 Searching for Views
2.1.8 Laying out Views
2.1.9 Displaying
2.1.10 Animating Views
2.1.11 Handling Events
2.1.12 Observing Changes
2.2 Properties
2.2.1 alpha
2.2.2 autoresizesSubviews
2.2.3 autoresizingMask
2.2.4 backgroundColor
2.2.5 bounds
2.2.6 center
2.2.7 clearsContextBeforeDrawing
2.2.8 clipsToBounds
2.2.9 contentMode
2.2.10 exclusiveTouch
2.2.11 frame
2.2.12 hidden
2.2.13 layer
2.2.14 multipleTouchEnabled
2.2.15 opaque
2.2.16 subviews
2.2.17 superview
2.2.18 tag
2.2.19 transform
2.2.20 userInteractionEnabled
2.2.21 window
2.3 Class Methods
2.3.1 areAnimationsEnabled
2.3.2 beginAnimations:context:
2.3.3 commitAnimations
2.3.4 layerClass
2.3.5 setAnimationBeginsFromCurrentState:
2.3.6 setAnimationCurve:
2.3.7 setAnimationDelay:
2.3.8 setAnimationDelegate:
2.3.9 setAnimationDidStopSelector:
2.3.10 setAnimationDuration:
2.3.11 setAnimationRepeatAutoreverses:
2.3.12 setAnimationRepeatCount:
2.3.13 setAnimationsEnabled:
2.3.14 setAnimationStartDate:
2.3.15 setAnimationTransition:forView:cache:
2.3.16 setAnimationWillStartSelector:
2.4 Instance Methods
2.4.1 addSubview:
2.4.2 bringSubviewToFront:
2.4.3 convertPoint:fromView:
2.4.4 convertPoint:toView:
2.4.5 convertRect:fromView:
2.4.6 convertRect:toView:
2.4.7 didAddSubview:
2.4.8 didMoveToSuperview
2.4.9 didMoveToWindow
2.4.10 drawRect:
2.4.11 exchangeSubviewAtIndex:withSubviewAtIndex:
2.4.12 hitTest:withEvent:
2.4.13 initWithFrame:
2.4.14 insertSubview:aboveSubview:
2.4.15 insertSubview:atIndex:
2.4.16 insertSubview:belowSubview:
2.4.17 isDescendantOfView:
2.4.18 layoutIfNeeded
2.4.19 layoutSubviews
2.4.20 pointInside:withEvent:
2.4.21 removeFromSuperview
2.4.22 sendSubviewToBack:
2.4.23 setNeedsDisplay
2.4.24 setNeedsDisplayInRect:
2.4.25 setNeedsLayout
2.4.26 sizeThatFits:
2.4.27 sizeToFit
2.4.28 viewWithTag:
2.4.29 willMoveToSuperview:
2.4.30 willMoveToWindow:
2.4.31 willRemoveSubview:
2.5 Constants
2.5.1 UIViewAnimationCurve
2.5.2 UIViewContentMode
2.5.3 UIViewAutoresizing
2.5.4 UIViewAnimationTransition
反过来想一下, 从MVC结构来看,UIView是V,
我们习惯上操作V的时候 ,一般是从C来操作V的,
所以, 从这个角度上讲,你的问题,可能 不太合MVC的风格.
另外, 想UIView的子类,比如UIButton啦,UILabel之类的, 明显它没有相应的Controller,
对吧
UIVIEW api:
1 UNDER COSTRUCTION, PLEASE SEE THIS POST IN RESERVE COPY
2 CLICK HERE
2.1 Tasks
2.1.1 Creating Instances
2.1.2 Setting and Getting Attributes
2.1.3 Modifying the Bounds and Frame Rectangles
2.1.4 Converting Coordinates
2.1.5 Resizing Subviews
2.1.6 Managing the View Hierarchy
2.1.7 Searching for Views
2.1.8 Laying out Views
2.1.9 Displaying
2.1.10 Animating Views
2.1.11 Handling Events
2.1.12 Observing Changes
2.2 Properties
2.2.1 alpha
2.2.2 autoresizesSubviews
2.2.3 autoresizingMask
2.2.4 backgroundColor
2.2.5 bounds
2.2.6 center
2.2.7 clearsContextBeforeDrawing
2.2.8 clipsToBounds
2.2.9 contentMode
2.2.10 exclusiveTouch
2.2.11 frame
2.2.12 hidden
2.2.13 layer
2.2.14 multipleTouchEnabled
2.2.15 opaque
2.2.16 subviews
2.2.17 superview
2.2.18 tag
2.2.19 transform
2.2.20 userInteractionEnabled
2.2.21 window
2.3 Class Methods
2.3.1 areAnimationsEnabled
2.3.2 beginAnimations:context:
2.3.3 commitAnimations
2.3.4 layerClass
2.3.5 setAnimationBeginsFromCurrentState:
2.3.6 setAnimationCurve:
2.3.7 setAnimationDelay:
2.3.8 setAnimationDelegate:
2.3.9 setAnimationDidStopSelector:
2.3.10 setAnimationDuration:
2.3.11 setAnimationRepeatAutoreverses:
2.3.12 setAnimationRepeatCount:
2.3.13 setAnimationsEnabled:
2.3.14 setAnimationStartDate:
2.3.15 setAnimationTransition:forView:cache:
2.3.16 setAnimationWillStartSelector:
2.4 Instance Methods
2.4.1 addSubview:
2.4.2 bringSubviewToFront:
2.4.3 convertPoint:fromView:
2.4.4 convertPoint:toView:
2.4.5 convertRect:fromView:
2.4.6 convertRect:toView:
2.4.7 didAddSubview:
2.4.8 didMoveToSuperview
2.4.9 didMoveToWindow
2.4.10 drawRect:
2.4.11 exchangeSubviewAtIndex:withSubviewAtIndex:
2.4.12 hitTest:withEvent:
2.4.13 initWithFrame:
2.4.14 insertSubview:aboveSubview:
2.4.15 insertSubview:atIndex:
2.4.16 insertSubview:belowSubview:
2.4.17 isDescendantOfView:
2.4.18 layoutIfNeeded
2.4.19 layoutSubviews
2.4.20 pointInside:withEvent:
2.4.21 removeFromSuperview
2.4.22 sendSubviewToBack:
2.4.23 setNeedsDisplay
2.4.24 setNeedsDisplayInRect:
2.4.25 setNeedsLayout
2.4.26 sizeThatFits:
2.4.27 sizeToFit
2.4.28 viewWithTag:
2.4.29 willMoveToSuperview:
2.4.30 willMoveToWindow:
2.4.31 willRemoveSubview:
2.5 Constants
2.5.1 UIViewAnimationCurve
2.5.2 UIViewContentMode
2.5.3 UIViewAutoresizing
2.5.4 UIViewAnimationTransition
Storm代理
2023-07-25 广告
2023-07-25 广告
StormProxies是一家可靠的代理服务提供商,提供原生IP(住宅原生IP)和高匿名代理服务。以下是关于StormProxies的原生IP服务的一些信息:1. 住宅原生IP:StormProxies提供的住宅原生IP是指从真实的家庭或企...
点击进入详情页
本回答由Storm代理提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询