Browse files

add FEX_isVisible UIView extension

  • Loading branch information...
1 parent 740acf5 commit 917c44c56612d15e6c65880e4a45afb9e7a5e06a @moredip committed Dec 4, 2012
Showing with 12 additions and 1 deletion.
  1. +1 −1 lib/Shelley
  2. +11 −0 src/UIView+Frank.m
2 lib/Shelley
@@ -1 +1 @@
-Subproject commit b16b31846227611c377e9db55742e9f402a47bae
+Subproject commit 4bc9e3078d6fa31b6d679939afa0b2564bd67403
View
11 src/UIView+Frank.m
@@ -35,4 +35,15 @@ - (void) FEX_flash{
[originalBackgroundColor release];
}
+- (BOOL) FEX_isVisible{
+ if( [self isHidden] )
+ return false;
+
+ if( [self superview] ){
+ return [[self superview] FEX_isVisible];
+ }else{
+ return true;
+ }
+}
+
@end

0 comments on commit 917c44c

Please sign in to comment.