Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

longitude and latitude validations work also fuck this github audit

  • Loading branch information...
commit 4931949696a71c92c4bc2fcaef2f9dec66fb2724 1 parent 199f1c3
Andrew Furman authored
BIN  Homework1.xcodeproj/project.xcworkspace/xcuserdata/furmanx.xcuserdatad/UserInterfaceState.xcuserstate
View
Binary file not shown
7 Homework1/Tweet.m
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.