Errors for camera feed as background in app

Discussion in 'iOS Development' started by Rdude, Jun 14, 2009.

  1. Rdude

    Rdude Member

    Joined:
    Oct 28, 2007
    Messages:
    282
    Likes Received:
    0
    Device:
    iPhone 3G (Black)
    So a member here at iptf (Cyanidepoison) helped me out with the code to get the iPhone camera feed as the background in the app, but I get these two errors. It is a utility based app template. And I was putting this code in my MainViewController.m

    Code:
    UIView *block = [[UIView alloc] initWithFrame:CGRectMake(0,420,320,60)];
    	block.backgroundColor = [UIColor lightGrayColor];
    	
    	[block addSubview:captureButton];
    	[yourImagePicker.view addSubview:block];
       [self.navigationController presentModalViewController:yourImagePicker animated:NO];
    
    here is a screenshot of the errors:

    Please Register or Log in to view images






    what can I do to fix it? Or what should the code look like?

    Thanks!
    ------------------double post merged------------------
    does anyone know? sorry for bumping, but these errors are stopping my whole project...

Share This Page