Skip to content

Commit

Permalink
listo ya no se rompe la app :) close #1
Browse files Browse the repository at this point in the history
  • Loading branch information
rockarloz committed Nov 14, 2014
1 parent 7078b67 commit a5cd6ef
Show file tree
Hide file tree
Showing 6 changed files with 198 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -584,11 +584,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DejateCaer/NuevoInicioViewController.m"
timestampString = "437624269.551102"
timestampString = "437677370.648896"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "1175"
endingLineNumber = "1175"
startingLineNumber = "1204"
endingLineNumber = "1204"
landmarkName = "-filtrar:"
landmarkType = "5">
</BreakpointContent>
Expand All @@ -600,11 +600,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DejateCaer/NuevoInicioViewController.m"
timestampString = "437624269.551102"
timestampString = "437677370.648896"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "1171"
endingLineNumber = "1171"
startingLineNumber = "1200"
endingLineNumber = "1200"
landmarkName = "-filtrar:"
landmarkType = "5">
</BreakpointContent>
Expand All @@ -616,11 +616,11 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DejateCaer/NuevoInicioViewController.m"
timestampString = "437624269.551102"
timestampString = "437677370.648896"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "1169"
endingLineNumber = "1169"
startingLineNumber = "1198"
endingLineNumber = "1198"
landmarkName = "-filtrar:"
landmarkType = "5">
</BreakpointContent>
Expand Down Expand Up @@ -664,11 +664,75 @@
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DejateCaer/NuevoInicioViewController.m"
timestampString = "437624512.75616"
timestampString = "437677370.648896"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "1159"
endingLineNumber = "1159"
startingLineNumber = "1181"
endingLineNumber = "1181"
landmarkName = "-filtrar:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DejateCaer/NuevoInicioViewController.m"
timestampString = "437677370.648896"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "1342"
endingLineNumber = "1342"
landmarkName = "-filtrar:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DejateCaer/NuevoInicioViewController.m"
timestampString = "437676912.416425"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "352"
endingLineNumber = "352"
landmarkName = "-obtenerEventos:Y:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DejateCaer/NuevoInicioViewController.m"
timestampString = "437677370.648896"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "1354"
endingLineNumber = "1354"
landmarkName = "-filtrar:"
landmarkType = "5">
</BreakpointContent>
</BreakpointProxy>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.FileBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "No"
filePath = "DejateCaer/NuevoInicioViewController.m"
timestampString = "437677190.303365"
startingColumnNumber = "9223372036854775807"
endingColumnNumber = "9223372036854775807"
startingLineNumber = "1041"
endingLineNumber = "1041"
landmarkName = "-filtrar:"
landmarkType = "5">
</BreakpointContent>
Expand Down
2 changes: 1 addition & 1 deletion DejateCaer/Base.lproj/Main_iPhone.storyboard
Original file line number Diff line number Diff line change
Expand Up @@ -1009,7 +1009,7 @@
<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"/>
<rect key="frame" x="15" y="20" width="40" height="44"/>
<state key="normal" backgroundImage="back2.png">
<color key="titleShadowColor" white="0.5" alpha="1" colorSpace="calibratedWhite"/>
</state>
Expand Down
65 changes: 65 additions & 0 deletions DejateCaer/NuevoInicioViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1074,6 +1074,13 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
eventos=_original;
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1103,6 +1110,13 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
eventos=_original;
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1131,6 +1145,14 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
eventos=_original;
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}


}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1159,6 +1181,13 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
eventos=_original;
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1187,6 +1216,12 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
eventos=_original;
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}
}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1215,6 +1250,13 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
eventos=_original;
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1243,6 +1285,13 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
eventos=_original;
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1271,6 +1320,14 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
eventos=_original;
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}


}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1299,6 +1356,14 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
eventos=_original;
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}


}
else{
[self.tableView reloadData];
Expand Down
3 changes: 1 addition & 2 deletions DejateCaer/ResenaViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ - (void)viewDidLoad


loading=[[UIView alloc]initWithFrame:CGRectMake(self.view.frame.size.width/2-25, self.view.frame.size.height/2 -50, 50, 50)];
loading.backgroundColor=[UIColor colorWithRed:(243/255.0) green:(23/255.0) blue:(52/255.0) alpha:0.8];
// loading.alpha=0.8;
loading.backgroundColor=[UIColor colorWithRed:(7/255.0) green:(104/255.0) blue:(239/255.0) alpha:1]; // loading.alpha=0.8;
loading.layer.cornerRadius = 5;
loading.layer.masksToBounds = YES;

Expand Down
54 changes: 54 additions & 0 deletions FututroViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,12 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1106,6 +1112,12 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1134,6 +1146,12 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1162,6 +1180,12 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1190,6 +1214,12 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1218,6 +1248,12 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1246,6 +1282,12 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1274,6 +1316,12 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down Expand Up @@ -1302,6 +1350,12 @@ -(IBAction)filtrar:(id)sender{
if ([eventos count]==0) {
UIAlertView *alerta=[[UIAlertView alloc]initWithTitle:@"Mensaje" message:@"No encontramos eventos de esta categoría cerca de ti , intenta con otra categoría" delegate:nil cancelButtonTitle:@"Aceptar" otherButtonTitles:nil, nil];
[alerta show];
@autoreleasepool {
UIButton *a=[UIButton alloc];
a.tag=0;
[self filtrar:a];
}

}
else{
[self.tableView reloadData];
Expand Down
2 changes: 1 addition & 1 deletion eventCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
[self addSubview:_hora];

_distancia=[[UILabel alloc]initWithFrame:CGRectMake(260, 60, 70, 34)];
_distancia.text=@"300 m";
_distancia.text=@"";
_distancia.textColor=[UIColor grayColor];//[UIColor colorWithRed:(7/255.0) green:(104/255.0) blue:(239/255.0) alpha:1];
// [_distancia setFont:[UIFont systemFontOfSize:14]];
[_distancia setFont:[UIFont fontWithName:@"NIISans" size:12]];
Expand Down

0 comments on commit a5cd6ef

Please sign in to comment.