Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "NoShadowTableView.h"
- @implementation NoShadowTableView
- - (void) didAddSubview:(UIView *)subview
- {
- [super didAddSubview:subview];
- // Hide any shadows
- if([[[subview class] description] isEqualToString:@"UITableViewWrapperView"]) {
- [NSTimer scheduledTimerWithTimeInterval:0.01f target:self selector:@selector(watchForSubviews:) userInfo:subview repeats:YES];
- }
- }
- - (void)watchForSubviews:(NSTimer *)timer {
- UIView *v = timer.userInfo;
- for (UIView *sv in v.subviews) {
- if ([sv isKindOfClass:NSClassFromString(@"UIShadowView")]) {
- sv.hidden = YES;
- }
- }
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement