Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLC-iOS
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
269
Issues
269
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLC-iOS
Commits
6a1bba01
Commit
6a1bba01
authored
Dec 09, 2015
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remote browsing collection view: add a cone next to the 'nothing to show' label
parent
2a9eb8b8
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
64 additions
and
22 deletions
+64
-22
Apple-TV/Assets.xcassets/NetworkBrowsing/cone.imageset/Contents.json
...sets.xcassets/NetworkBrowsing/cone.imageset/Contents.json
+13
-0
Apple-TV/Assets.xcassets/NetworkBrowsing/cone.imageset/Icon-Foreground.png
...cassets/NetworkBrowsing/cone.imageset/Icon-Foreground.png
+0
-0
Apple-TV/VLCRemoteBrowsingCollectionViewController.h
Apple-TV/VLCRemoteBrowsingCollectionViewController.h
+3
-0
Apple-TV/VLCRemoteBrowsingCollectionViewController.xib
Apple-TV/VLCRemoteBrowsingCollectionViewController.xib
+30
-0
Apple-TV/VLCServerBrowsingTVViewController.m
Apple-TV/VLCServerBrowsingTVViewController.m
+9
-11
Apple-TV/VLCServerListTVViewController.m
Apple-TV/VLCServerListTVViewController.m
+9
-11
No files found.
Apple-TV/Assets.xcassets/NetworkBrowsing/cone.imageset/Contents.json
0 → 100644
View file @
6a1bba01
{
"images"
:
[
{
"idiom"
:
"tv"
,
"filename"
:
"Icon-Foreground.png"
,
"scale"
:
"1x"
}
],
"info"
:
{
"version"
:
1
,
"author"
:
"xcode"
}
}
\ No newline at end of file
Apple-TV/Assets.xcassets/NetworkBrowsing/cone.imageset/Icon-Foreground.png
0 → 100644
View file @
6a1bba01
13.9 KB
Apple-TV/VLCRemoteBrowsingCollectionViewController.h
View file @
6a1bba01
...
...
@@ -14,4 +14,7 @@
@interface
VLCRemoteBrowsingCollectionViewController
:
UICollectionViewController
@property
(
readwrite
,
weak
,
nonatomic
)
IBOutlet
UIView
*
nothingFoundView
;
@property
(
readwrite
,
weak
,
nonatomic
)
IBOutlet
UILabel
*
nothingFoundLabel
;
@end
Apple-TV/VLCRemoteBrowsingCollectionViewController.xib
View file @
6a1bba01
...
...
@@ -7,6 +7,8 @@
<placeholder
placeholderIdentifier=
"IBFilesOwner"
id=
"-1"
userLabel=
"File's Owner"
customClass=
"VLCRemoteBrowsingCollectionViewController"
>
<connections>
<outlet
property=
"collectionView"
destination=
"NUi-8f-W1D"
id=
"iDT-ID-8jS"
/>
<outlet
property=
"nothingFoundLabel"
destination=
"Mu6-3W-jEj"
id=
"hmc-NZ-fOG"
/>
<outlet
property=
"nothingFoundView"
destination=
"h3e-OS-Jjb"
id=
"QPG-ls-Fhp"
/>
<outlet
property=
"preferredFocusedView"
destination=
"NUi-8f-W1D"
id=
"mXv-Wn-Sh7"
/>
<outlet
property=
"view"
destination=
"NUi-8f-W1D"
id=
"oDs-Vy-NyX"
/>
</connections>
...
...
@@ -26,5 +28,33 @@
<outlet
property=
"delegate"
destination=
"-1"
id=
"Ng7-Ok-jZx"
/>
</connections>
</collectionView>
<view
contentMode=
"scaleToFill"
id=
"h3e-OS-Jjb"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"257"
height=
"274"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<subviews>
<imageView
userInteractionEnabled=
"NO"
contentMode=
"scaleToFill"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
image=
"cone"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Quf-Xw-Yoh"
>
<rect
key=
"frame"
x=
"57"
y=
"25"
width=
"143"
height=
"158"
/>
</imageView>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"nuting found"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Mu6-3W-jEj"
>
<rect
key=
"frame"
x=
"20"
y=
"213"
width=
"217"
height=
"46"
/>
<fontDescription
key=
"fontDescription"
style=
"UICTFontTextStyleHeadline"
/>
<color
key=
"textColor"
white=
"0.33333333333333331"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
white=
"0.66666666666666663"
alpha=
"1"
colorSpace=
"calibratedWhite"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"Mu6-3W-jEj"
secondAttribute=
"bottom"
constant=
"15"
id=
"58q-ng-MEs"
/>
<constraint
firstItem=
"Mu6-3W-jEj"
firstAttribute=
"centerX"
secondItem=
"Quf-Xw-Yoh"
secondAttribute=
"centerX"
id=
"Hjw-pa-rCv"
/>
<constraint
firstItem=
"Quf-Xw-Yoh"
firstAttribute=
"top"
secondItem=
"h3e-OS-Jjb"
secondAttribute=
"top"
constant=
"25"
id=
"Je2-wH-8DG"
/>
<constraint
firstItem=
"Mu6-3W-jEj"
firstAttribute=
"top"
secondItem=
"Quf-Xw-Yoh"
secondAttribute=
"bottom"
constant=
"30"
id=
"gZY-EA-QXB"
/>
<constraint
firstItem=
"Quf-Xw-Yoh"
firstAttribute=
"centerX"
secondItem=
"h3e-OS-Jjb"
secondAttribute=
"centerX"
id=
"glb-f5-O9H"
/>
</constraints>
<freeformSimulatedSizeMetrics
key=
"simulatedDestinationMetrics"
/>
<point
key=
"canvasLocation"
x=
"1128.5"
y=
"1333.5"
/>
</view>
</objects>
<resources>
<image
name=
"cone"
width=
"143"
height=
"158"
/>
</resources>
</document>
Apple-TV/VLCServerBrowsingTVViewController.m
View file @
6a1bba01
...
...
@@ -37,16 +37,14 @@
self
.
title
=
serverBrowser
.
title
;
_nothingFoundLabel
=
[[
UILabel
alloc
]
init
];
_nothingFoundLabel
.
text
=
NSLocalizedString
(
@"FOLDER_EMPTY"
,
nil
);
_nothingFoundLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_nothingFoundLabel
.
textColor
=
[
UIColor
VLCLightTextColor
];
_nothingFoundLabel
.
font
=
[
UIFont
preferredFontForTextStyle
:
UIFontTextStyleTitle3
];
[
_nothingFoundLabel
sizeToFit
];
[
_nothingFoundLabel
setTranslatesAutoresizingMaskIntoConstraints
:
NO
];
[
self
.
view
addSubview
:
_nothingFoundLabel
];
NSLayoutConstraint
*
yConstraint
=
[
NSLayoutConstraint
constraintWithItem
:
_nothingFoundLabel
self
.
nothingFoundLabel
.
text
=
NSLocalizedString
(
@"FOLDER_EMPTY"
,
nil
);
[
self
.
nothingFoundLabel
sizeToFit
];
UIView
*
nothingFoundView
=
self
.
nothingFoundView
;
[
nothingFoundView
sizeToFit
];
[
nothingFoundView
setTranslatesAutoresizingMaskIntoConstraints
:
NO
];
[
self
.
view
addSubview
:
nothingFoundView
];
NSLayoutConstraint
*
yConstraint
=
[
NSLayoutConstraint
constraintWithItem
:
nothingFoundView
attribute:
NSLayoutAttributeCenterY
relatedBy:
NSLayoutRelationEqual
toItem:
self
.
view
...
...
@@ -54,7 +52,7 @@
multiplier:
1
.
0
constant:
0
.
0
];
[
self
.
view
addConstraint
:
yConstraint
];
NSLayoutConstraint
*
xConstraint
=
[
NSLayoutConstraint
constraintWithItem
:
_nothingFoundLabel
NSLayoutConstraint
*
xConstraint
=
[
NSLayoutConstraint
constraintWithItem
:
nothingFoundView
attribute:
NSLayoutAttributeCenterX
relatedBy:
NSLayoutRelationEqual
toItem:
self
.
view
...
...
Apple-TV/VLCServerListTVViewController.m
View file @
6a1bba01
...
...
@@ -54,16 +54,14 @@
flowLayout
.
minimumInteritemSpacing
=
48
.
0
;
flowLayout
.
minimumLineSpacing
=
100
.
0
;
_nothingFoundLabel
=
[[
UILabel
alloc
]
init
];
_nothingFoundLabel
.
text
=
NSLocalizedString
(
@"NO_SERVER_FOUND"
,
nil
);
_nothingFoundLabel
.
textAlignment
=
NSTextAlignmentCenter
;
_nothingFoundLabel
.
textColor
=
[
UIColor
darkGrayColor
];
_nothingFoundLabel
.
font
=
[
UIFont
preferredFontForTextStyle
:
UIFontTextStyleTitle3
];
[
_nothingFoundLabel
sizeToFit
];
[
_nothingFoundLabel
setTranslatesAutoresizingMaskIntoConstraints
:
NO
];
[
self
.
view
addSubview
:
_nothingFoundLabel
];
NSLayoutConstraint
*
yConstraint
=
[
NSLayoutConstraint
constraintWithItem
:
_nothingFoundLabel
self
.
nothingFoundLabel
.
text
=
NSLocalizedString
(
@"NO_SERVER_FOUND"
,
nil
);
[
self
.
nothingFoundLabel
sizeToFit
];
UIView
*
nothingFoundView
=
self
.
nothingFoundView
;
[
nothingFoundView
sizeToFit
];
[
nothingFoundView
setTranslatesAutoresizingMaskIntoConstraints
:
NO
];
[
self
.
view
addSubview
:
nothingFoundView
];
NSLayoutConstraint
*
yConstraint
=
[
NSLayoutConstraint
constraintWithItem
:
nothingFoundView
attribute:
NSLayoutAttributeCenterY
relatedBy:
NSLayoutRelationEqual
toItem:
self
.
view
...
...
@@ -71,7 +69,7 @@
multiplier:
1
.
0
constant:
0
.
0
];
[
self
.
view
addConstraint
:
yConstraint
];
NSLayoutConstraint
*
xConstraint
=
[
NSLayoutConstraint
constraintWithItem
:
_nothingFoundLabel
NSLayoutConstraint
*
xConstraint
=
[
NSLayoutConstraint
constraintWithItem
:
nothingFoundView
attribute:
NSLayoutAttributeCenterX
relatedBy:
NSLayoutRelationEqual
toItem:
self
.
view
...
...
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