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
2dd27313
Commit
2dd27313
authored
Apr 04, 2015
by
Felix Paul Kühne
Browse files
fix watch table initialization
parent
afeb4c41
Changes
2
Hide whitespace changes
Inline
Side-by-side
Podfile.lock
View file @
2dd27313
...
...
@@ -11,7 +11,8 @@ PODS:
- upnpx (1.3.2)
DEPENDENCIES:
- box-ios-sdk-v2 (from `git://github.com/carolanitz/box-ios-sdk-v2.git`, commit `d2df30aa5f76d30910e06f3ef5aff49025de3cf1`)
- box-ios-sdk-v2 (from `git://github.com/carolanitz/box-ios-sdk-v2.git`, commit
`d2df30aa5f76d30910e06f3ef5aff49025de3cf1`)
- GHSidebarNav (= 1.0.0)
- InAppSettingsKit (= 2.2.2)
- OBSlider (= 1.1.0)
...
...
@@ -45,4 +46,4 @@ SPEC CHECKSUMS:
SSKeychain: 88767e903ee8d274ed380e364d96b7a101235286
upnpx: e56e4f26d21c439b2383e03b5ca9082a3d5046a1
COCOAPODS: 0.36.
0
COCOAPODS: 0.36.
1
VLC for iOS WatchKit Extension/InterfaceController.m
View file @
2dd27313
...
...
@@ -43,20 +43,17 @@ static NSString *const VLCDBUpdateNotificationRemote = @"org.videolan.ios-app.db
self
.
title
=
NSLocalizedString
(
@"LIBRARY_ALL_FILES"
,
nil
);
[[
VLCNotificationRelay
sharedRelay
]
addRelayRemoteName
:
VLCDBUpdateNotificationRemote
toLocalName
:
VLCDBUpdateNotification
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
updateData
)
name
:
VLCDBUpdateNotification
object
:
nil
];
VLCWatchTableController
*
tableController
=
[
VLCWatchTableController
new
];
tableController
.
table
=
self
.
table
;
tableController
.
previousPageButton
=
self
.
previousButton
;
tableController
.
nextPageButton
=
self
.
nextButton
;
tableController
.
pageSize
=
5
;
tableController
.
rowTypeForObjectBlock
=
^
(
id
object
)
{
_
tableController
=
[
[
VLCWatchTableController
alloc
]
init
];
_
tableController
.
table
=
self
.
table
;
_
tableController
.
previousPageButton
=
self
.
previousButton
;
_
tableController
.
nextPageButton
=
self
.
nextButton
;
_
tableController
.
pageSize
=
5
;
_
tableController
.
rowTypeForObjectBlock
=
^
(
id
object
)
{
return
rowType
;
};
tableController
.
configureRowControllerWithObjectBlock
=
^
(
id
controller
,
id
object
)
{
_
tableController
.
configureRowControllerWithObjectBlock
=
^
(
id
controller
,
id
object
)
{
[
self
configureTableRowController
:
context
withObject
:
object
];
};
[
self
updateData
];
}
-
(
void
)
willActivate
{
...
...
@@ -64,6 +61,8 @@ static NSString *const VLCDBUpdateNotificationRemote = @"org.videolan.ios-app.db
[
super
willActivate
];
NSLog
(
@"%s"
,
__PRETTY_FUNCTION__
);
[
self
updateData
];
[[
NSNotificationCenter
defaultCenter
]
addObserver
:
self
selector
:
@selector
(
updateData
)
name
:
VLCDBUpdateNotification
object
:
nil
];
}
...
...
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