Skip to content

Commit

Permalink
puedes hacer búsquedas por fechas :)
Browse files Browse the repository at this point in the history
  • Loading branch information
rockarloz committed Nov 14, 2014
1 parent 74abc4b commit 7078b67
Show file tree
Hide file tree
Showing 4 changed files with 1,379 additions and 15 deletions.
69 changes: 68 additions & 1 deletion DejateCaer/Base.lproj/Main_iPhone.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -597,7 +597,7 @@
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="phL-K3-TMj" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-470" y="2321"/>
<point key="canvasLocation" x="-830" y="2345"/>
</scene>
<!--Nuevo Opciones View Controller-->
<scene sceneID="1eQ-lR-bnO">
Expand Down Expand Up @@ -990,6 +990,73 @@
</objects>
<point key="canvasLocation" x="-70" y="1297"/>
</scene>
<!--Fututro View Controller-->
<scene sceneID="iL1-hT-ccq">
<objects>
<viewController storyboardIdentifier="futuro" useStoryboardIdentifierAsRestorationIdentifier="YES" id="Njz-DQ-hjQ" customClass="FututroViewController" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="Jfz-q1-QH4"/>
<viewControllerLayoutGuide type="bottom" id="6WW-RH-cZK"/>
</layoutGuides>
<view key="view" contentMode="scaleToFill" id="ruu-R1-WA7">
<rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
<subviews>
<view contentMode="scaleToFill" fixedFrame="YES" translatesAutoresizingMaskIntoConstraints="NO" id="wpm-K4-fei">
<rect key="frame" x="0.0" y="0.0" width="320" height="64"/>
<subviews>
<imageView userInteractionEnabled="NO" contentMode="scaleToFill" horizontalHuggingPriority="251" verticalHuggingPriority="251" fixedFrame="YES" image="eventario.png" translatesAutoresizingMaskIntoConstraints="NO" id="cgw-N2-u01">
<rect key="frame" x="92" y="37" width="136" height="19"/>
</imageView>
<button opaque="NO" contentMode="scaleToFill" fixedFrame="YES" contentHorizontalAlignment="center" contentVerticalAlignment="center" buttonType="roundedRect" lineBreakMode="middleTruncation" translatesAutoresizingMaskIntoConstraints="NO" id="xgz-tX-Czi">
<rect key="frame" x="14" y="31" width="46" height="31"/>
<state key="normal" backgroundImage="back2.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
<connections>
<action selector="regresar:" destination="Njz-DQ-hjQ" eventType="touchDown" id="DCt-oB-3fL"/>
</connections>
</button>
</subviews>
<color key="backgroundColor" red="0.027450980390000001" green="0.40784313729999999" blue="0.93725490199999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</view>
<tableView clipsSubviews="YES" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" alwaysBounceVertical="YES" dataMode="prototypes" style="plain" separatorStyle="default" rowHeight="44" sectionHeaderHeight="22" sectionFooterHeight="22" translatesAutoresizingMaskIntoConstraints="NO" id="6tD-xM-jC5">
<rect key="frame" x="0.0" y="329" width="320" height="239"/>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
</tableView>
<scrollView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" translatesAutoresizingMaskIntoConstraints="NO" id="w6q-gc-EZ0">
<rect key="frame" x="0.0" y="285" width="320" height="44"/>
<color key="backgroundColor" red="0.95686274510000002" green="0.95686274510000002" blue="0.95686274510000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
<connections>
<outlet property="delegate" destination="ruu-R1-WA7" id="dGF-C2-7cF"/>
</connections>
</scrollView>
<mapView clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="scaleToFill" ambiguous="YES" misplaced="YES" mapType="standard" translatesAutoresizingMaskIntoConstraints="NO" id="Z4G-Be-bdD">
<rect key="frame" x="0.0" y="64" width="320" height="223"/>
<connections>
<outlet property="delegate" destination="Njz-DQ-hjQ" id="Bl4-c6-9pc"/>
</connections>
</mapView>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
<constraints>
<constraint firstItem="6tD-xM-jC5" firstAttribute="top" secondItem="w6q-gc-EZ0" secondAttribute="bottom" constant="-1" id="4WM-J1-DTm"/>
<constraint firstItem="w6q-gc-EZ0" firstAttribute="top" secondItem="Z4G-Be-bdD" secondAttribute="bottom" constant="-2" id="Flm-Lj-P4R"/>
<constraint firstItem="6WW-RH-cZK" firstAttribute="top" secondItem="6tD-xM-jC5" secondAttribute="bottom" id="bPf-YD-fjt"/>
<constraint firstItem="Z4G-Be-bdD" firstAttribute="top" secondItem="Jfz-q1-QH4" secondAttribute="bottom" constant="44" id="vWS-Ub-0HP"/>
</constraints>
</view>
<tabBarItem key="tabBarItem" title="" image="aquiTab.png" id="K14-TB-Dnn"/>
<connections>
<outlet property="mapa" destination="Z4G-Be-bdD" id="6x4-al-gpa"/>
<outlet property="scroll" destination="w6q-gc-EZ0" id="o5q-zo-tz9"/>
<outlet property="tableView" destination="6tD-xM-jC5" id="iuY-M5-PRu"/>
</connections>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="whP-5C-BNy" userLabel="First Responder" sceneMemberID="firstResponder"/>
</objects>
<point key="canvasLocation" x="-136" y="1743"/>
</scene>
</scenes>
<resources>
<image name="CalendarTab.png" width="32" height="32"/>
Expand Down
15 changes: 12 additions & 3 deletions DejateCaer/CalendarioViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

#import "CalendarioViewController.h"
#import "FututroViewController.h"

@interface CalendarioViewController ()

Expand Down Expand Up @@ -63,11 +64,19 @@ -(void)calendarView:(VRGCalendarView *)calendarView dateSelected:(NSDate *)date
df.dateStyle = NSDateFormatterMediumStyle;
NSLog(@"%@", [NSString stringWithFormat:@"%@",
[df stringFromDate:date]]);
//fechaFutura=[NSString stringWithFormat:@"%@",
// [df stringFromDate:date]];

NSString *fecha =[NSString stringWithFormat:@"%@",
[df stringFromDate:date]];
NSArray *aux = [fecha componentsSeparatedByString:@"/"];
fecha=[NSString stringWithFormat:@"%@/%@/%@",[aux objectAtIndex:2],[aux objectAtIndex:1],[aux objectAtIndex:0]];
//[self futuro:nil];
FututroViewController *futuro;
futuro= [[self storyboard] instantiateViewControllerWithIdentifier:@"futuro"];
futuro.fecha=fecha;
futuro.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
// [self.navigationController pushViewController:detalles animated:YES];


[self presentViewController:futuro animated:YES completion:NULL];
}

/*
Expand Down
1 change: 1 addition & 0 deletions FututroViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
@property (nonatomic, retain) IBOutlet UITableView *tableView;
@property (nonatomic,strong) NSArray *eventos;
@property (nonatomic,strong) NSArray *original;
@property (nonatomic,strong) NSString *fecha;



Expand Down
Loading

0 comments on commit 7078b67

Please sign in to comment.