[Examples: ASDKgram] Initial commit of a new sample app - a 500px photo feed / social app using layout specs and nodes.

This commit is contained in:
Hannah Troisi
2016-03-28 21:31:37 -07:00
parent 63c6c24b19
commit b5e502fbc9
93 changed files with 5291 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
//
// CommentModel.h
// Flickrgram
//
// Created by Hannah Troisi on 3/9/16.
// Copyright © 2016 Hannah Troisi. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@interface CommentModel : NSObject
@property (nonatomic, assign, readonly) NSUInteger ID;
@property (nonatomic, assign, readonly) NSUInteger commenterID;
@property (nonatomic, strong, readonly) NSString *commenterUsername;
@property (nonatomic, strong, readonly) NSString *commenterAvatarURL;
@property (nonatomic, strong, readonly) NSString *body;
@property (nonatomic, strong, readonly) NSString *uploadDateString;
- (instancetype)init NS_UNAVAILABLE;
- (instancetype)initWithDictionary:(NSDictionary *)photoDictionary NS_DESIGNATED_INITIALIZER;
- (NSAttributedString *)commentAttributedString;
- (NSAttributedString *)uploadDateAttributedStringWithFontSize:(CGFloat)size;
@end