You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
681 B
28 lines
681 B
// |
|
// UIView+convenience.h |
|
// |
|
// Created by Tjeerd in 't Veen on 12/1/11. |
|
// Copyright (c) 2011 Vurig Media. All rights reserved. |
|
// |
|
|
|
#import <UIKit/UIKit.h> |
|
|
|
@interface UIView (convenience) |
|
|
|
@property (nonatomic) CGPoint frameOrigin; |
|
@property (nonatomic) CGSize frameSize; |
|
|
|
@property (nonatomic) CGFloat frameX; |
|
@property (nonatomic) CGFloat frameY; |
|
|
|
// Setting these modifies the origin but not the size. |
|
@property (nonatomic) CGFloat frameRight; |
|
@property (nonatomic) CGFloat frameBottom; |
|
|
|
@property (nonatomic) CGFloat frameWidth; |
|
@property (nonatomic) CGFloat frameHeight; |
|
|
|
-(BOOL) containsSubView:(UIView *)subView; |
|
-(BOOL) containsSubViewOfClassType:(Class)class; |
|
|
|
@end
|
|
|