@@ -49,7 +49,6 @@ - (void)viewWillAppear:(BOOL)animated {
4949 [sendButton setTintColor: buttonTintColor];
5050 [sendButton setSelectedTintColor: buttonSelectedColor];
5151 CGSize sendSize = [sendTitle sizeWithAttributes: @{NSFontAttributeName :sendButton.titleLabel .font }];
52- sendButton.frame = CGRectMake (self.view .bounds .size .width - sendSize.width - 30 , 7 , sendSize.width , 50 );
5352 [sendButton addTarget: self action: @selector (actionSend: ) forControlEvents: UIControlEventTouchUpInside];
5453 [self .view addSubview: sendButton];
5554
@@ -60,9 +59,14 @@ - (void)viewWillAppear:(BOOL)animated {
6059 [receiveButton setTintColor: buttonTintColor];
6160 [receiveButton setSelectedTintColor: buttonSelectedColor];
6261 CGSize receiveSize = [receiveTitle sizeWithAttributes: @{NSFontAttributeName :receiveButton.titleLabel .font }];
63- receiveButton.frame = CGRectMake (self.view .bounds .size .width - receiveSize.width - sendSize.width - 60 , 12 , receiveSize.width , 50 );
6462 [receiveButton addTarget: self action: @selector (actionReceive: ) forControlEvents: UIControlEventTouchUpInside];
6563 [self .view addSubview: receiveButton];
64+
65+
66+ CGFloat width = sendSize.width + receiveSize.width ;
67+ CGFloat padding = (180 - width) / 3 ;
68+ sendButton.frame = CGRectMake (self.view .bounds .size .width - sendSize.width - padding, 7 , sendSize.width , 50 );
69+ receiveButton.frame = CGRectMake (self.view .bounds .size .width - receiveSize.width - sendSize.width - padding * 2 , 12 , receiveSize.width , 50 );
6670}
6771
6872- (void )actionSend : (id )sender {
0 commit comments