UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
CGFloat xPos =self.frame.size.width + self.frame.origin.x + 10;
CGFloat yPos =self.frame.origin.y;
button.frame = CGRectMake(xPos, yPos, self.frame.size.height, self.frame.size.height);
[button setImage:[UIImage imageNamed:@"nice.png"] forState:UIControlStateNormal];
[button addTarget:self action:@selector(focused:) forControlEvents:UIControlEventTouchUpInside];
[self.superview addSubview:button];