Permalink
Browse files

[ios] Support iPhone5 display.

  • Loading branch information...
1 parent 3f2fe06 commit f36f4ab96086b079c0065e01ac1c6569316fb561 @yatsu committed Nov 30, 2012
View
12 ios/Bestmix.xcodeproj/project.pbxproj
@@ -36,6 +36,9 @@
1C842A74159B47DD009198C8 /* PublicPostsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C842A6F159B47DD009198C8 /* PublicPostsViewController.m */; };
1C842A7F159C25AD009198C8 /* _MyPost.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C842A7C159C25AD009198C8 /* _MyPost.m */; };
1C842A80159C25AD009198C8 /* MyPost.m in Sources */ = {isa = PBXBuildFile; fileRef = 1C842A7E159C25AD009198C8 /* MyPost.m */; };
+ 1C8496A5164CD13E00123FDB /* Default.png in Resources */ = {isa = PBXBuildFile; fileRef = 1C8496A4164CD13E00123FDB /* Default.png */; };
+ 1C8496A8164CD14F00123FDB /* Default@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1C8496A7164CD14F00123FDB /* Default@2x.png */; };
+ 1C8496AA164CD15100123FDB /* Default-568h@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = 1C8496A9164CD15100123FDB /* Default-568h@2x.png */; };
1CA74BFB15837C5900DDE84D /* UIColor+Hex.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CA74BFA15837C5900DDE84D /* UIColor+Hex.m */; };
1CA8E748157A2A670062C93F /* Bestmix.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 1CA8E746157A2A670062C93F /* Bestmix.xcdatamodeld */; };
1CE166E11595835800ED8736 /* UIAlertView+SimpleAlert.m in Sources */ = {isa = PBXBuildFile; fileRef = 1CE166E01595835800ED8736 /* UIAlertView+SimpleAlert.m */; };
@@ -97,6 +100,9 @@
1C842A7C159C25AD009198C8 /* _MyPost.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = _MyPost.m; sourceTree = "<group>"; };
1C842A7D159C25AD009198C8 /* MyPost.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyPost.h; sourceTree = "<group>"; };
1C842A7E159C25AD009198C8 /* MyPost.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyPost.m; sourceTree = "<group>"; };
+ 1C8496A4164CD13E00123FDB /* Default.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = Default.png; sourceTree = "<group>"; };
+ 1C8496A7164CD14F00123FDB /* Default@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default@2x.png"; sourceTree = "<group>"; };
+ 1C8496A9164CD15100123FDB /* Default-568h@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "Default-568h@2x.png"; sourceTree = "<group>"; };
1CA74BF915837C5900DDE84D /* UIColor+Hex.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "UIColor+Hex.h"; sourceTree = "<group>"; };
1CA74BFA15837C5900DDE84D /* UIColor+Hex.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "UIColor+Hex.m"; sourceTree = "<group>"; };
1CA8E747157A2A670062C93F /* Bestmix.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = Bestmix.xcdatamodel; sourceTree = "<group>"; };
@@ -139,6 +145,9 @@
1C7ABC7915775C6700327DEB = {
isa = PBXGroup;
children = (
+ 1C8496A9164CD15100123FDB /* Default-568h@2x.png */,
+ 1C8496A7164CD14F00123FDB /* Default@2x.png */,
+ 1C8496A4164CD13E00123FDB /* Default.png */,
1CA8E745157A2A2E0062C93F /* DataModel */,
1CA8E7381579FD320062C93F /* Categories */,
1C7ABC8E15775C6700327DEB /* Bestmix */,
@@ -318,6 +327,9 @@
1C7ABCA615775C6700327DEB /* first@2x.png in Resources */,
1C7ABCAB15775C6700327DEB /* second.png in Resources */,
1C7ABCAD15775C6700327DEB /* second@2x.png in Resources */,
+ 1C8496A5164CD13E00123FDB /* Default.png in Resources */,
+ 1C8496A8164CD14F00123FDB /* Default@2x.png in Resources */,
+ 1C8496AA164CD15100123FDB /* Default-568h@2x.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
View
16 ios/DataModel/_FacebookPost.h
@@ -43,64 +43,78 @@ extern const struct FacebookPostFetchedProperties {
+
@property (nonatomic, strong) NSDate* createdAt;
+
//- (BOOL)validateCreatedAt:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* facebookPostID;
+
//- (BOOL)validateFacebookPostID:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* from;
+
//- (BOOL)validateFrom:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* message;
+
//- (BOOL)validateMessage:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* to;
+
//- (BOOL)validateTo:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* type;
+
//- (BOOL)validateType:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSDate* updatedAt;
+
//- (BOOL)validateUpdatedAt:(id*)value_ error:(NSError**)error_;
-@property (nonatomic, strong) User* user;
+@property (nonatomic, strong) User *user;
//- (BOOL)validateUser:(id*)value_ error:(NSError**)error_;
View
2 ios/DataModel/_FacebookPost.m
@@ -43,7 +43,7 @@ - (FacebookPostID*)objectID {
return (FacebookPostID*)[super objectID];
}
-+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
++ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
View
14 ios/DataModel/_FacebookUser.h
@@ -41,56 +41,68 @@ extern const struct FacebookUserFetchedProperties {
+
@property (nonatomic, strong) NSString* facebookUserID;
+
//- (BOOL)validateFacebookUserID:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* firstName;
+
//- (BOOL)validateFirstName:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* gender;
+
//- (BOOL)validateGender:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* lastName;
+
//- (BOOL)validateLastName:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* name;
+
//- (BOOL)validateName:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* username;
+
//- (BOOL)validateUsername:(id*)value_ error:(NSError**)error_;
-@property (nonatomic, strong) User* user;
+@property (nonatomic, strong) User *user;
//- (BOOL)validateUser:(id*)value_ error:(NSError**)error_;
View
2 ios/DataModel/_FacebookUser.m
@@ -42,7 +42,7 @@ - (FacebookUserID*)objectID {
return (FacebookUserID*)[super objectID];
}
-+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
++ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
View
16 ios/DataModel/_MyPost.h
@@ -43,25 +43,31 @@ extern const struct MyPostFetchedProperties {
+
@property (nonatomic, strong) NSString* content;
+
//- (BOOL)validateContent:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSDate* createdAt;
+
//- (BOOL)validateCreatedAt:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSNumber* expire;
+
@property BOOL expireValue;
- (BOOL)expireValue;
- (void)setExpireValue:(BOOL)value_;
@@ -71,9 +77,11 @@ extern const struct MyPostFetchedProperties {
+
@property (nonatomic, strong) NSNumber* myPostID;
+
@property int64_t myPostIDValue;
- (int64_t)myPostIDValue;
- (void)setMyPostIDValue:(int64_t)value_;
@@ -83,32 +91,38 @@ extern const struct MyPostFetchedProperties {
+
@property (nonatomic, strong) NSDate* publishedAt;
+
//- (BOOL)validatePublishedAt:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* title;
+
//- (BOOL)validateTitle:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSDate* updatedAt;
+
//- (BOOL)validateUpdatedAt:(id*)value_ error:(NSError**)error_;
-@property (nonatomic, strong) User* user;
+@property (nonatomic, strong) User *user;
//- (BOOL)validateUser:(id*)value_ error:(NSError**)error_;
View
4 ios/DataModel/_MyPost.m
@@ -43,16 +43,18 @@ - (MyPostID*)objectID {
return (MyPostID*)[super objectID];
}
-+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
++ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
if ([key isEqualToString:@"expireValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"expire"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
if ([key isEqualToString:@"myPostIDValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"myPostID"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
return keyPaths;
View
16 ios/DataModel/_Post.h
@@ -43,25 +43,31 @@ extern const struct PostFetchedProperties {
+
@property (nonatomic, strong) NSString* content;
+
//- (BOOL)validateContent:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSDate* createdAt;
+
//- (BOOL)validateCreatedAt:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSNumber* expire;
+
@property BOOL expireValue;
- (BOOL)expireValue;
- (void)setExpireValue:(BOOL)value_;
@@ -71,9 +77,11 @@ extern const struct PostFetchedProperties {
+
@property (nonatomic, strong) NSNumber* postID;
+
@property int64_t postIDValue;
- (int64_t)postIDValue;
- (void)setPostIDValue:(int64_t)value_;
@@ -83,32 +91,38 @@ extern const struct PostFetchedProperties {
+
@property (nonatomic, strong) NSDate* publishedAt;
+
//- (BOOL)validatePublishedAt:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* title;
+
//- (BOOL)validateTitle:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSDate* updatedAt;
+
//- (BOOL)validateUpdatedAt:(id*)value_ error:(NSError**)error_;
-@property (nonatomic, strong) User* user;
+@property (nonatomic, strong) User *user;
//- (BOOL)validateUser:(id*)value_ error:(NSError**)error_;
View
4 ios/DataModel/_Post.m
@@ -43,16 +43,18 @@ - (PostID*)objectID {
return (PostID*)[super objectID];
}
-+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
++ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
if ([key isEqualToString:@"expireValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"expire"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
if ([key isEqualToString:@"postIDValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"postID"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
return keyPaths;
View
14 ios/DataModel/_User.h
@@ -41,25 +41,31 @@ extern const struct UserFetchedProperties {
+
@property (nonatomic, strong) NSDate* createdAt;
+
//- (BOOL)validateCreatedAt:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSString* email;
+
//- (BOOL)validateEmail:(id*)value_ error:(NSError**)error_;
+
@property (nonatomic, strong) NSNumber* userID;
+
@property int64_t userIDValue;
- (int64_t)userIDValue;
- (void)setUserIDValue:(int64_t)value_;
@@ -70,28 +76,28 @@ extern const struct UserFetchedProperties {
-@property (nonatomic, strong) NSSet* facebookPosts;
+@property (nonatomic, strong) NSSet *facebookPosts;
- (NSMutableSet*)facebookPostsSet;
-@property (nonatomic, strong) FacebookUser* facebookUser;
+@property (nonatomic, strong) FacebookUser *facebookUser;
//- (BOOL)validateFacebookUser:(id*)value_ error:(NSError**)error_;
-@property (nonatomic, strong) NSSet* myPosts;
+@property (nonatomic, strong) NSSet *myPosts;
- (NSMutableSet*)myPostsSet;
-@property (nonatomic, strong) NSSet* posts;
+@property (nonatomic, strong) NSSet *posts;
- (NSMutableSet*)postsSet;
View
3 ios/DataModel/_User.m
@@ -42,12 +42,13 @@ - (UserID*)objectID {
return (UserID*)[super objectID];
}
-+ (NSSet *)keyPathsForValuesAffectingValueForKey:(NSString *)key {
++ (NSSet*)keyPathsForValuesAffectingValueForKey:(NSString*)key {
NSSet *keyPaths = [super keyPathsForValuesAffectingValueForKey:key];
if ([key isEqualToString:@"userIDValue"]) {
NSSet *affectingKey = [NSSet setWithObject:@"userID"];
keyPaths = [keyPaths setByAddingObjectsFromSet:affectingKey];
+ return keyPaths;
}
return keyPaths;
View
BIN ios/Images/Default-568h@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN ios/Images/Default.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
BIN ios/Images/Default@2x.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f36f4ab

Please sign in to comment.