Skip to content

Commit

Permalink
added main storyboard for ui merge
Browse files Browse the repository at this point in the history
  • Loading branch information
milescrabill committed Dec 9, 2014
1 parent 8f7d7de commit b171ec1
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
7 changes: 7 additions & 0 deletions Main.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6254" systemVersion="14B25" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6247"/>
</dependencies>
<scenes/>
</document>
4 changes: 4 additions & 0 deletions socialCalendar.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
objects = {

/* Begin PBXBuildFile section */
025122511A3782CB00F3900A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 025122501A3782CB00F3900A /* Main.storyboard */; };
02C91E741A2E08E100B3977B /* Accounts.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02C91E731A2E08E100B3977B /* Accounts.framework */; };
02C91E761A2E08E500B3977B /* AudioToolbox.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02C91E751A2E08E500B3977B /* AudioToolbox.framework */; };
02C91E781A2E08ED00B3977B /* CFNetwork.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 02C91E771A2E08EC00B3977B /* CFNetwork.framework */; };
Expand Down Expand Up @@ -52,6 +53,7 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
025122501A3782CB00F3900A /* Main.storyboard */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.storyboard; name = Main.storyboard; path = ../Main.storyboard; sourceTree = "<group>"; };
02C91E731A2E08E100B3977B /* Accounts.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Accounts.framework; path = System/Library/Frameworks/Accounts.framework; sourceTree = SDKROOT; };
02C91E751A2E08E500B3977B /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = System/Library/Frameworks/AudioToolbox.framework; sourceTree = SDKROOT; };
02C91E771A2E08EC00B3977B /* CFNetwork.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CFNetwork.framework; path = System/Library/Frameworks/CFNetwork.framework; sourceTree = SDKROOT; };
Expand Down Expand Up @@ -171,6 +173,7 @@
1079FEF01A2D4AD900654080 /* socialCalendar */ = {
isa = PBXGroup;
children = (
025122501A3782CB00F3900A /* Main.storyboard */,
1036795E1A2E3124001D63D2 /* friends.xcdatamodeld */,
02F9119A1A2E61EE00B15744 /* Kevin.storyboard */,
02F911971A2E604C00B15744 /* Miles.storyboard */,
Expand Down Expand Up @@ -304,6 +307,7 @@
buildActionMask = 2147483647;
files = (
02F9119C1A2E61EE00B15744 /* Kevin.storyboard in Resources */,
025122511A3782CB00F3900A /* Main.storyboard in Resources */,
02F911991A2E604C00B15744 /* Miles.storyboard in Resources */,
1079FEFE1A2D4AD900654080 /* LaunchScreen.xib in Resources */,
1079FEFB1A2D4AD900654080 /* Images.xcassets in Resources */,
Expand Down
4 changes: 2 additions & 2 deletions socialCalendar/Base.lproj/Kevin.storyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="MCh-g3-iwS">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6254" systemVersion="14B25" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="MCh-g3-iwS">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6247"/>
</dependencies>
<scenes>
<!--View Controller-->
Expand Down
6 changes: 3 additions & 3 deletions socialCalendar/Base.lproj/Miles.storyboard
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6250" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="pc6-gb-B16">
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6254" systemVersion="14B25" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="pc6-gb-B16">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6244"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6247"/>
</dependencies>
<scenes>
<!--Navigation Controller-->
Expand All @@ -18,7 +18,7 @@
</navigationController>
<placeholder placeholderIdentifier="IBFirstResponder" id="6qY-Ju-qP1" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-889" y="241"/>
<point key="canvasLocation" x="-889" y="246"/>
</scene>
<!--Login View Controller-->
<scene sceneID="ko0-AN-gzo">
Expand Down
11 changes: 4 additions & 7 deletions socialCalendar/FriendsTableViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,6 @@ class FriendsTableViewController: UITableViewController, UISearchBarDelegate, UI
let managedObjectContext = AppDelegate.sharedAppDelegate.managedObjectContext!
managedObjectContext.deleteObject(sortedFriends[indexPath.row])
sortedFriends.removeAtIndex(indexPath.row)

friendManager.friends.removeAtIndex(indexPath.row)
AppDelegate.sharedAppDelegate.saveContext()

tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Fade)
Expand All @@ -119,9 +117,9 @@ class FriendsTableViewController: UITableViewController, UISearchBarDelegate, UI
// Override to support rearranging the table view.
override func tableView(tableView: UITableView, moveRowAtIndexPath fromIndexPath: NSIndexPath, toIndexPath: NSIndexPath) {

let friendToMove = friendManager.friends[fromIndexPath.row]
friendManager.friends.removeAtIndex(fromIndexPath.row)
friendManager.friends.insert(friendToMove, atIndex: toIndexPath.row)
let friendToMove = sortedFriends[fromIndexPath.row]
sortedFriends.removeAtIndex(fromIndexPath.row)
sortedFriends.insert(friendToMove, atIndex: toIndexPath.row)
}


Expand Down Expand Up @@ -153,8 +151,7 @@ class FriendsTableViewController: UITableViewController, UISearchBarDelegate, UI
}

} else {

let friend = friendManager.friends[tableView.indexPathForSelectedRow()!.row]
let friend = sortedFriends[tableView.indexPathForSelectedRow()!.row]
destinationViewController.friend = friend
}
}
Expand Down
2 changes: 1 addition & 1 deletion socialCalendar/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<key>UILaunchStoryboardName</key>
<string>LaunchScreen</string>
<key>UIMainStoryboardFile</key>
<string>Kevin</string>
<string>Main</string>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>armv7</string>
Expand Down

0 comments on commit b171ec1

Please sign in to comment.