File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -347,9 +347,9 @@ - (NSString *)likeCountForDisplay
347
347
if (count == 0 ) {
348
348
title = likeStr;
349
349
} else if (count == 1 ) {
350
- title = [NSString stringWithFormat: @" %d %@ " , count, likeStr];
350
+ title = [NSString stringWithFormat: @" %ld %@ " , ( long ) count, likeStr];
351
351
} else {
352
- title = [NSString stringWithFormat: @" %d %@ " , count, likesStr];
352
+ title = [NSString stringWithFormat: @" %ld %@ " , ( long ) count, likesStr];
353
353
}
354
354
355
355
return title;
Original file line number Diff line number Diff line change @@ -9,14 +9,14 @@ public extension Media {
9
9
/// Increments the AutoUpload failure count for this Media object.
10
10
///
11
11
@objc
12
- public func incrementAutoUploadFailureCount( ) {
12
+ func incrementAutoUploadFailureCount( ) {
13
13
autoUploadFailureCount = NSNumber ( value: autoUploadFailureCount. intValue + 1 )
14
14
}
15
15
16
16
/// Resets the AutoUpload failure count for this Media object.
17
17
///
18
18
@objc
19
- public func resetAutoUploadFailureCount( ) {
19
+ func resetAutoUploadFailureCount( ) {
20
20
autoUploadFailureCount = 0
21
21
}
22
22
/// Returns true if a new attempt to upload the media will be done later.
@@ -44,7 +44,7 @@ public extension Media {
44
44
// MARK: - Media Type
45
45
46
46
/// Returns the MIME type, e.g. "image/png".
47
- @objc public var mimeType : String ? {
47
+ @objc var mimeType : String ? {
48
48
guard let fileExtension = self . fileExtension ( ) ,
49
49
let type = UTType ( filenameExtension: fileExtension) ,
50
50
let mimeType = type. preferredMIMEType else {
You can’t perform that action at this time.
0 commit comments