Advertisement
undeadhip

Untitled

Aug 18th, 2014
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. -(void)loadView {
  2.     [super loadView];
  3.    
  4.     search = NO;
  5.     self.profileView = [UIButton new];
  6.     self.profileView.backgroundColor = [UIColor redColor];
  7.     [self.profileView setImage:[UIImage imageNamed:@"ProfileNormalNew"] forState:UIControlStateNormal];
  8.     //[self.profileView setImage:[UIImage imageNamed:@"profileHighlighted"] forState:UIControlStateHighlighted];
  9.     [self.profileView addTarget:self action:@selector(onProfileTap) forControlEvents:UIControlEventTouchUpInside];
  10.     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(searchBegan) name:@"searchBegan" object:nil];
  11.     [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(searchCancel) name:@"searchCancel" object:nil];
  12.     [self.view addSubview:self.profileView];
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement