Commit 6cd818fa authored by Erik Magnusson's avatar Erik Magnusson Committed by zooble

expanded click area of cancel/pick buttons (#259)

parent ff743974
...@@ -48,7 +48,8 @@ ...@@ -48,7 +48,8 @@
[self addSubview:view]; [self addSubview:view];
self.leftBtn = [UIButton buttonWithType:UIButtonTypeCustom]; self.leftBtn = [UIButton buttonWithType:UIButtonTypeCustom];
self.leftBtn.frame = CGRectMake(10, 5, 90, 30); self.leftBtn.frame = CGRectMake(0, 0, 90, 40);
[self.leftBtn setTitleEdgeInsets:UIEdgeInsetsMake(0, 10.0, 0, 0)];
[self.leftBtn setTitle:self.leftStr forState:UIControlStateNormal]; [self.leftBtn setTitle:self.leftStr forState:UIControlStateNormal];
[self.leftBtn setFont:[UIFont systemFontOfSize:[_pickerToolBarFontSize integerValue]]]; [self.leftBtn setFont:[UIFont systemFontOfSize:[_pickerToolBarFontSize integerValue]]];
self.leftBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; self.leftBtn.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft;
...@@ -61,7 +62,8 @@ ...@@ -61,7 +62,8 @@
view.backgroundColor=[self colorWith:topbgColor]; view.backgroundColor=[self colorWith:topbgColor];
self.rightBtn = [UIButton buttonWithType:UIButtonTypeCustom]; self.rightBtn = [UIButton buttonWithType:UIButtonTypeCustom];
self.rightBtn.frame = CGRectMake(view.frame.size.width-100,5, 90, 30); self.rightBtn.frame = CGRectMake(view.frame.size.width-90,0, 90, 40);
[self.rightBtn setTitleEdgeInsets:UIEdgeInsetsMake(0, 0, 0, 10.0)];
[self.rightBtn setTitle:self.rightStr forState:UIControlStateNormal]; [self.rightBtn setTitle:self.rightStr forState:UIControlStateNormal];
self.rightBtn.contentHorizontalAlignment=UIControlContentHorizontalAlignmentRight; self.rightBtn.contentHorizontalAlignment=UIControlContentHorizontalAlignmentRight;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment