Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLC-iOS
Commits
54a41909
Commit
54a41909
authored
May 31, 2013
by
Felix Paul Kühne
Browse files
Dropbox: fix activity indicator location on iPad
parent
d5c2167a
Changes
1
Hide whitespace changes
Inline
Side-by-side
AspenProject/VLCDropboxTableViewController.m
View file @
54a41909
...
...
@@ -79,12 +79,6 @@
_activityIndicator
=
[[
UIActivityIndicatorView
alloc
]
initWithActivityIndicatorStyle
:
UIActivityIndicatorViewStyleWhiteLarge
];
_activityIndicator
.
hidesWhenStopped
=
YES
;
CGRect
aiFrame
=
_activityIndicator
.
frame
;
CGSize
tvSize
=
self
.
tableView
.
frame
.
size
;
aiFrame
.
origin
.
x
=
(
tvSize
.
width
-
aiFrame
.
size
.
width
)
/
2
.;
aiFrame
.
origin
.
y
=
(
tvSize
.
height
-
aiFrame
.
size
.
height
)
/
2
.;
_activityIndicator
.
frame
=
aiFrame
;
[
self
.
view
addSubview
:
_activityIndicator
];
}
...
...
@@ -94,6 +88,12 @@
self
.
navigationController
.
toolbar
.
barStyle
=
UIBarStyleBlack
;
[
self
updateViewAfterSessionChange
];
[
super
viewWillAppear
:
animated
];
CGRect
aiFrame
=
_activityIndicator
.
frame
;
CGSize
tvSize
=
self
.
tableView
.
frame
.
size
;
aiFrame
.
origin
.
x
=
(
tvSize
.
width
-
aiFrame
.
size
.
width
)
/
2
.;
aiFrame
.
origin
.
y
=
(
tvSize
.
height
-
aiFrame
.
size
.
height
)
/
2
.;
_activityIndicator
.
frame
=
aiFrame
;
}
-
(
void
)
viewWillDisappear
:(
BOOL
)
animated
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment