Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)loadView {
- [super loadView];
- search = NO;
- self.profileView = [UIButton new];
- self.profileView.backgroundColor = [UIColor redColor];
- [self.profileView setImage:[UIImage imageNamed:@"ProfileNormalNew"] forState:UIControlStateNormal];
- //[self.profileView setImage:[UIImage imageNamed:@"profileHighlighted"] forState:UIControlStateHighlighted];
- [self.profileView addTarget:self action:@selector(onProfileTap) forControlEvents:UIControlEventTouchUpInside];
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(searchBegan) name:@"searchBegan" object:nil];
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(searchCancel) name:@"searchCancel" object:nil];
- [self.view addSubview:self.profileView];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement