Permalink
Browse files

not yet added bio page

  • Loading branch information...
1 parent a62b6d3 commit eedfd4c233f812c239a97984da486866f3d6c816 @cozmoboy cozmoboy committed Mar 27, 2013
@@ -279,11 +279,15 @@ -(MKAnnotationView*)mapView:(MKMapView*)mapView viewForAnnotation:(id<MKAnnotati
UIButton *detailButton = [UIButton buttonWithType:UIButtonTypeDetailDisclosure];
MKAnnotationView *annotationView = [mapView dequeueReusableAnnotationViewWithIdentifier:@"myAnnotation"];
-
+ if([annotation isKindOfClass: [MKUserLocation class]])
+ {
+ return nil;
+ }
if (annotationView == nil) {
annotationView = [[MKAnnotationView alloc] initWithAnnotation:annotation reuseIdentifier:@"myAnnotation"];
}
+
// [detailButton addTarget:self
// action:@selector(goToYelpPage)
// forControlEvents:UIControlEventTouchUpInside];
@@ -356,11 +360,6 @@ -(MKAnnotationView*)mapView:(MKMapView*)mapView viewForAnnotation:(id<MKAnnotati
// [UIView animateWithDuration:3.5 animations:^(void) {
// loadingOverlay.alpha = 0;}];
- if([annotation isKindOfClass: [MKUserLocation class]])
- {
- return nil;
- }
-
return annotationView;
}
@@ -425,6 +424,12 @@ - (MKOverlayView *)mapView:(MKMapView *)mapView viewForOverlay:(id <MKOverlay>)o
//
- (void)mapView:(MKMapView *)mapView didSelectAnnotationView:(MKAnnotationView *)view
{
+
+ if([view.annotation isKindOfClass: [MKUserLocation class]])
+
+ {
+ return;
+ }
if (didSelectThumbnail == NO)
{
@@ -162,7 +162,7 @@ -(NSArray*) fetchBookmarks
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"viewDate" ascending:YES];
NSArray * sortDescriptorArray = [[NSArray alloc] initWithObjects:sortDescriptor, nil];
- NSPredicate * predicate = [NSPredicate predicateWithFormat:@"isBookmarked == %@", [NSNumber numberWithBool:YES]];
+ //NSPredicate * predicate = [NSPredicate predicateWithFormat:@"isBookmarked == %@", [NSNumber numberWithBool:YES]];
NSError *searchError;
//David's Predicate Format Notes: may be deleted with impunity......................................
@@ -178,7 +178,7 @@ -(NSArray*) fetchBookmarks
//Lock and load
[fetchRequest setSortDescriptors:sortDescriptorArray];
- [fetchRequest setPredicate:predicate];
+ //[fetchRequest setPredicate:predicate];
[fetchRequest setEntity:entityDescription];
fetchResultsController = [[NSFetchedResultsController alloc] initWithFetchRequest:fetchRequest managedObjectContext:self.managedObjectContext sectionNameKeyPath:nil cacheName:nil];
@@ -138,20 +138,6 @@
<rect key="frame" x="103" y="113" width="119" height="131"/>
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
</imageView>
- <view contentMode="scaleToFill" id="ycE-pM-AOQ">
- <rect key="frame" x="0.0" y="0.0" width="320" height="568"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <subviews>
- <label opaque="NO" clipsSubviews="YES" userInteractionEnabled="NO" contentMode="left" text="Label" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" id="gAj-UA-Pxs">
- <rect key="frame" x="20" y="85" width="280" height="463"/>
- <autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMaxY="YES"/>
- <fontDescription key="fontDescription" type="system" pointSize="17"/>
- <color key="textColor" cocoaTouchSystemColor="darkTextColor"/>
- <nil key="highlightedColor"/>
- </label>
- </subviews>
- <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
- </view>
</subviews>
<color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="calibratedWhite"/>
</view>

0 comments on commit eedfd4c

Please sign in to comment.