Skip to content

Commit

Permalink
Fixed bug: map inset was disappearing in gallery view
Browse files Browse the repository at this point in the history
  • Loading branch information
Deepwinter committed Mar 12, 2012
1 parent f2d843a commit 4ea501f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Wildflowers of Detroit Iphone/MapViewController.m
Expand Up @@ -313,6 +313,9 @@ -(void) mapToTimelineAnimation {

-(void) detailToGallery {
[self.view insertSubview:self.timelineView aboveSubview: self.detailView];
if(!launchInGalleryMode){
[self.view addSubview:mapView];
}
[self.detailView removeFromSuperview];
}

Expand Down Expand Up @@ -434,8 +437,8 @@ - (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnno
annotationView = [[MKAnnotationView alloc] initWithAnnotation:rhusMapAnnotation reuseIdentifier:rhusMapAnnotationIdentifier];
}

if([[activeDocuments objectAtIndex:rhusMapAnnotation.tag] objectForKey:@"deviceuser_identifier"]
== [DeviceUser uniqueIdentifier]){
NSString * deviceUserIdentifier = [[activeDocuments objectAtIndex:rhusMapAnnotation.tag] objectForKey:@"deviceuser_identifier"];
if(deviceUserIdentifier == [DeviceUser uniqueIdentifier]){
annotationView.image = [UIImage imageNamed:@"mapDeviceUserPoint"];
} else {
annotationView.image = [UIImage imageNamed:@"mapPoint"];
Expand Down Expand Up @@ -539,7 +542,6 @@ - (void)showDetailView {

- (void)hideDetailView{
[self.detailView removeFromSuperview];

}

- (void)showInfoViewForIndex: (NSInteger) index{
Expand Down
4 changes: 4 additions & 0 deletions Wildflowers of Detroit.xcodeproj/project.pbxproj
Expand Up @@ -428,6 +428,7 @@
F4F2857B150DADBC009A24C9 /* shutter.png in Resources */ = {isa = PBXBuildFile; fileRef = F4F2857A150DADBC009A24C9 /* shutter.png */; };
F4F2857D150DB751009A24C9 /* shutter.png in Resources */ = {isa = PBXBuildFile; fileRef = F4F2857A150DADBC009A24C9 /* shutter.png */; };
F4F2857E150DB751009A24C9 /* shutter.png in Resources */ = {isa = PBXBuildFile; fileRef = F4F2857A150DADBC009A24C9 /* shutter.png */; };
F4F2859E150DEA3A009A24C9 /* mapDeviceUserPoint.png in Resources */ = {isa = PBXBuildFile; fileRef = F4F2859D150DEA3A009A24C9 /* mapDeviceUserPoint.png */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -601,6 +602,7 @@
F4F02F8014CFA6250041492E /* WOverlay.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WOverlay.h; sourceTree = "<group>"; };
F4F02F8114CFA6250041492E /* WOverlay.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WOverlay.m; sourceTree = "<group>"; };
F4F2857A150DADBC009A24C9 /* shutter.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = shutter.png; path = graphics/shutter.png; sourceTree = SOURCE_ROOT; };
F4F2859D150DEA3A009A24C9 /* mapDeviceUserPoint.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; name = mapDeviceUserPoint.png; path = graphics/mapDeviceUserPoint.png; sourceTree = SOURCE_ROOT; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -688,6 +690,7 @@
A6A620D814BBBB670096CA01 /* Graphics */ = {
isa = PBXGroup;
children = (
F4F2859D150DEA3A009A24C9 /* mapDeviceUserPoint.png */,
F4F2857A150DADBC009A24C9 /* shutter.png */,
F43B7E7F1508F33A00584E8B /* orangeOverlay.png */,
A6B74F17150A20F300D1B133 /* MapIcon.psd */,
Expand Down Expand Up @@ -1363,6 +1366,7 @@
F49D333C150C3E8C00BC1D7D /* Defaultx2.png in Resources */,
A6428BE4150CAF4800CC0D03 /* LoadingViewController.xib in Resources */,
F4F2857B150DADBC009A24C9 /* shutter.png in Resources */,
F4F2859E150DEA3A009A24C9 /* mapDeviceUserPoint.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down

0 comments on commit 4ea501f

Please sign in to comment.