I'm displaying some map point in Google Maps. When the user clicks on that map point I will display the marker info. In this window, I am using two buttons whenever a user clicks on that button doesTapInfoWindowOfMarker looks like a fire but I am not able to know which click has been clicked Can that help me for that? I do not want to use any other approach. Thanks
Update: - This information is a Windows code.
- Ready (zero) bubble {// UIView * bubble = [[UIView alloc] initWithFrame: CGRectMake (0, 0, 200, 80)]; Self.frame = CGRectMake (0, 0, 260, 130); Self.backgroundColor = [UIColor clear collar]; // self.lier.border color = [UIColor grayColor] .CGColor; //self.lear.borderwidth = 1; // Self. Layer CornerRadia = 7; UIImageView * bg = [[UIImageView alloc] initWithFrame: self.frame]; Bg.image = [UIImage imageNamed: @ "Popup Page"]; [Self-edited review: bg]; Self.titleLabel = [[UILabel alloc] initWithFrame: CGRectMake (90, 5, 150, 40)]; Self.titleLabel.backgroundColor = [UIColor clear collar]; [Self.titleLabel setAdjustsFontSizeToFitWidth: TRUE]; Self.titleLabel.numberOfLines = 0; Self.titleLabel.font = [UIFont FontWithName: Font Nameialialball Size: 14]; Self.titleLabel.text = _title; Self.addressLabel = [[UILabel alloc] initWithFrame: CGRectMake (90, 40, 150, 35)]; Self.addressLabel.backgroundColor = [UIColor clear collar]; [Self. EderLabel sets Adobe Facts Troubleshooting: TRUE]; Self.addressLabel.numberOfLines = 0; Self.addressLabel.font = [UIFont fontWithName: font namename: 12]; Self.addressLabel.text = _address; Self.imageView = [[UIImageView alloc] initWithFrame: CGRectMake (15, 15, 70, 70)]; [Self AdSewview: Self. Image view]; Self.imageView.image = [UIImage imageWithData: [NSData dataWithContentsOfURL: [NSURL URLWithString: _imageUrl]]]; If (self.imageView.image == zero) {self.imageView.image = [UIImage imageNamed: DefaultImage100]; } // [[[Custom Network Alok] Init] Setizes: Imageview at _imageUrl: Self. IMajup with Place Holder Image: Default Image 100]; [Self AdSewview: Self. Title label]; [Self-add sublueview: self.addressLabel]; If (_ratings & gt; 0) {[Add it manually: SUBview: [self addStar: _ratings]]; } If (_hasTeeTimes) {UIButton * button = [UIButtonTypeRoundedRect] with UIButton Button; [Button set titles: @for "book" status: UIControllstat normal]; [Button Settiller: [UIColor whiteColor] forState: UIControlStateNormal]; UIImage * button image = [UIImage imageNamed: @ "button_orange_large.png"]; [Button setbackground image: status for button: UIControlStateNormal]; Button.frame = CGRectMake (200, 75, 45, 25); [Self adsview: button]; } // Return itself; }
Here I am trying to click the listener, first on the button and the other is on tap in any part of this window like textField etc. Then my two new scenes
- Change the button to properties.
- Tag buttons
- Determine the sender by logically and determine what it is> or <
- Load custom Xibs, and all of these 0 lines will work with the code.
No comments:
Post a Comment