diff --git a/Yellr/Yellr.xcodeproj/project.pbxproj b/Yellr/Yellr.xcodeproj/project.pbxproj index 51742e5..65de989 100644 --- a/Yellr/Yellr.xcodeproj/project.pbxproj +++ b/Yellr/Yellr.xcodeproj/project.pbxproj @@ -44,6 +44,7 @@ 26CA8D411B1CD3090094BFC3 /* StoryDetailViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26CA8D401B1CD3090094BFC3 /* StoryDetailViewController.swift */; }; 26CA8D431B1CFA6D0094BFC3 /* YellrHelperFunc.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26CA8D421B1CFA6D0094BFC3 /* YellrHelperFunc.swift */; }; 26CA8D451B1D05980094BFC3 /* YellrTabBarController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 26CA8D441B1D05980094BFC3 /* YellrTabBarController.swift */; }; + 26CDFD291B388792005997D5 /* Images-2.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 26CDFD281B388792005997D5 /* Images-2.xcassets */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -108,6 +109,7 @@ 26CA8D401B1CD3090094BFC3 /* StoryDetailViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = StoryDetailViewController.swift; sourceTree = ""; }; 26CA8D421B1CFA6D0094BFC3 /* YellrHelperFunc.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YellrHelperFunc.swift; sourceTree = ""; }; 26CA8D441B1D05980094BFC3 /* YellrTabBarController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = YellrTabBarController.swift; sourceTree = ""; }; + 26CDFD281B388792005997D5 /* Images-2.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Images-2.xcassets"; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -169,6 +171,7 @@ 265E21DE1B1D79AB0026D252 /* Images */, 269A10DD1B1CCAB90001577D /* Localizable.strings */, 2661C88F1B2A337900CC681F /* Yellr-Bridging-Header.h */, + 26CDFD281B388792005997D5 /* Images-2.xcassets */, ); path = Yellr; sourceTree = ""; @@ -367,6 +370,7 @@ 263E1B721B18D36A0063E9C6 /* Main.storyboard in Resources */, 269A10DB1B1CCAB90001577D /* Localizable.strings in Resources */, 263E1B771B18D36A0063E9C6 /* LaunchScreen.xib in Resources */, + 26CDFD291B388792005997D5 /* Images-2.xcassets in Resources */, 263E1B741B18D36A0063E9C6 /* Images.xcassets in Resources */, ); runOnlyForDeploymentPostprocessing = 0; @@ -547,6 +551,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = "iPhone Developer: Debjit Saha (F9EU8LF4ZQ)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Debjit Saha (F9EU8LF4ZQ)"; @@ -564,6 +569,7 @@ isa = XCBuildConfiguration; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + ASSETCATALOG_COMPILER_LAUNCHIMAGE_NAME = LaunchImage; CLANG_ENABLE_MODULES = YES; CODE_SIGN_IDENTITY = "iPhone Developer: Debjit Saha (F9EU8LF4ZQ)"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer: Debjit Saha (F9EU8LF4ZQ)"; diff --git a/Yellr/Yellr/AddPostViewController.swift b/Yellr/Yellr/AddPostViewController.swift index 48773e7..399ca61 100644 --- a/Yellr/Yellr/AddPostViewController.swift +++ b/Yellr/Yellr/AddPostViewController.swift @@ -10,7 +10,7 @@ import UIKit import MobileCoreServices import CoreLocation -class AddPostViewController: UIViewController, UINavigationControllerDelegate, UIImagePickerControllerDelegate, UIActionSheetDelegate, CLLocationManagerDelegate { +class AddPostViewController: UIViewController, UINavigationControllerDelegate, UIImagePickerControllerDelegate, UIActionSheetDelegate, CLLocationManagerDelegate, UITextFieldDelegate { @IBOutlet weak var photoBtn: UIButton! @IBOutlet weak var vdoBtn: UIButton! @@ -85,6 +85,7 @@ class AddPostViewController: UIViewController, UINavigationControllerDelegate, U } //pickedImage.image = UIImage(named: "Debjit.jpg") + postContent.delegate = self } @@ -619,4 +620,10 @@ class AddPostViewController: UIViewController, UINavigationControllerDelegate, U alert.addButtonWithTitle(NSLocalizedString(YellrConstants.Location.Okay, comment: "Okay")) alert.show() } + + //MARK: Keyboard Delegates + func textFieldShouldReturn(textField: UITextField) -> Bool { + postContent.resignFirstResponder() + return true + } } diff --git a/Yellr/Yellr/Base.lproj/Main.storyboard b/Yellr/Yellr/Base.lproj/Main.storyboard index 6a7ccf1..ad67aa5 100644 --- a/Yellr/Yellr/Base.lproj/Main.storyboard +++ b/Yellr/Yellr/Base.lproj/Main.storyboard @@ -416,44 +416,6 @@ - - - - - - - - - - - - - - - - - - - - - - - @@ -495,17 +457,6 @@ - - - - - - - - - - - @@ -515,6 +466,7 @@ + diff --git a/Yellr/Yellr/Images-2.xcassets/LaunchImage.launchimage/Contents.json b/Yellr/Yellr/Images-2.xcassets/LaunchImage.launchimage/Contents.json new file mode 100644 index 0000000..71152ba --- /dev/null +++ b/Yellr/Yellr/Images-2.xcassets/LaunchImage.launchimage/Contents.json @@ -0,0 +1,25 @@ +{ + "images" : [ + { + "orientation" : "portrait", + "idiom" : "iphone", + "extent" : "full-screen", + "minimum-system-version" : "7.0", + "filename" : "ios7splash.png", + "scale" : "2x" + }, + { + "extent" : "full-screen", + "idiom" : "iphone", + "subtype" : "retina4", + "filename" : "ios7splash2.png", + "minimum-system-version" : "7.0", + "orientation" : "portrait", + "scale" : "2x" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} \ No newline at end of file diff --git a/Yellr/Yellr/Images-2.xcassets/LaunchImage.launchimage/ios7splash.png b/Yellr/Yellr/Images-2.xcassets/LaunchImage.launchimage/ios7splash.png new file mode 100644 index 0000000..62b871e Binary files /dev/null and b/Yellr/Yellr/Images-2.xcassets/LaunchImage.launchimage/ios7splash.png differ diff --git a/Yellr/Yellr/Images-2.xcassets/LaunchImage.launchimage/ios7splash2.png b/Yellr/Yellr/Images-2.xcassets/LaunchImage.launchimage/ios7splash2.png new file mode 100644 index 0000000..6636ff4 Binary files /dev/null and b/Yellr/Yellr/Images-2.xcassets/LaunchImage.launchimage/ios7splash2.png differ diff --git a/Yellr/Yellr/Info.plist b/Yellr/Yellr/Info.plist index f113434..9d4b398 100644 --- a/Yellr/Yellr/Info.plist +++ b/Yellr/Yellr/Info.plist @@ -19,7 +19,7 @@ CFBundleSignature ???? CFBundleVersion - 11 + 12 LSRequiresIPhoneOS NSLocationAlwaysUsageDescription diff --git a/Yellr/Yellr/LocalTableViewController.swift b/Yellr/Yellr/LocalTableViewController.swift index 6c97229..b3c95e2 100644 --- a/Yellr/Yellr/LocalTableViewController.swift +++ b/Yellr/Yellr/LocalTableViewController.swift @@ -123,7 +123,7 @@ class LocalTableViewController: UITableViewController, CLLocationManagerDelegate } - return height + 20 + return height + 0