#import "LightViewController.h"
#import "UIUtils.h"
#import <AVFoundation/AVFoundation.h>
@interface LightViewController ()
{
UIImageView *_backgroundImageView;//背景视图
UIImageView *_iconImageView1;
}
@property(nonatomic,retain)AVCaptureSession *AVSession;
@end
@implementation LightViewController
- (void)viewDidLoad {
[super viewDidLoad];
self.title = @"群星闪耀";
[self setNavigationBar];
[self addBackgroundImageView];
[self addInstructions];
}
//设置navigationbar
- (void)setNavigationBar
{
//设置navigationbar的title颜色
NSDictionary *dictionary = @{ NSForegroundColorAttributeName:[UIColor whiteColor]};
[self.navigationController.navigationBar setTitleTextAttributes:dictionary];
//添加返回按钮
UIBarButtonItem *leftBarButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"lp_nav_goback.png"] style:UIBarButtonItemStylePlain target:self action:@selector(back)];
self.navigationItem.leftBarButtonItem = leftBarButton;</