Permalink
Browse files

longitude and latitude validations work also fuck this github audit

  • Loading branch information...
1 parent 199f1c3 commit 4931949696a71c92c4bc2fcaef2f9dec66fb2724 Andrew Furman committed Mar 10, 2012
View
BIN ...odeproj/project.xcworkspace/xcuserdata/furmanx.xcuserdatad/UserInterfaceState.xcuserstate
Binary file not shown.
View
7 Homework1/Tweet.m
@@ -51,4 +51,11 @@ - (void)setLatitude:(double)latitude
_latitude = latitude;
}
+- (void)setLongitude:(double)longitude
+{
+ if(longitude > 90.0 || longitude < -90.0)
+ return;
+ _longitude = longitude;
+}
+
@end

0 comments on commit 4931949

Please sign in to comment.