Dave Batton DaveBatton

View -colorizeView:
1 2 3 4 5 6 7 8 9 10
- (void)colorizeView:(UIView *)view
{
static CGFloat alpha = 0.1f;
 
view.backgroundColor = [[UIColor blueColor] colorWithAlphaComponent:alpha];
alpha += 0.1f;
 
for (UIView *subview in view.subviews) {
[self colorizeView:subview];
}
View -stealImagesFromView:
1 2 3 4 5 6 7 8 9 10
- (void)stealImagesFromView:(UIView *)view
{
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [paths objectAtIndex:0]; // Get documents folder
 
for (UIView *subview in view.subviews) {
if ([subview isKindOfClass:[UIImageView class]]) {
UIImageView *imageView = (UIImageView *)subview;
if (imageView.image) {
NSString *filename = [NSString stringWithFormat:@"image (%f)", [NSDate timeIntervalSinceReferenceDate]];
Something went wrong with that request. Please try again.