Skip to content

Commit

Permalink
Fixes post photo button position
Browse files Browse the repository at this point in the history
centering, so easily tap.

refs tumblr#129
  • Loading branch information
ykws committed Jun 23, 2017
1 parent e1002ed commit 1a95ac9
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ - (void)viewDidLoad {
[button setTitle:@"Post photo" forState:UIControlStateNormal];
[button sizeToFit];
[button addTarget:self action:@selector(postPhoto) forControlEvents:UIControlEventTouchUpInside];

CGRect screenRect = [[UIScreen mainScreen] bounds];
button.center = CGPointMake(screenRect.size.width / 2, screenRect.size.height / 2);

[self.view addSubview:button];

// TODO: Fill in your keys and secrets
Expand Down

0 comments on commit 1a95ac9

Please sign in to comment.