I have an Mk animation with a callout asset control when I press, I display a UIView: / P>
- (zero) mapView: (MKMapView *) mapView AnnotationView: (MKAnnotationView *) View CalloutAutomatic Control: (UIControl *) Control {NSDate * start = [NSDate date]; DLog (@ "Fired"); Delaag (@ "Thread:% @", [Encyclopedia Current and Path]); View EntityPoint * entityPoint = (EntityPoint *) Annotation; EntityFormView * entityFormView = entityPoint.entityFormView; Delaag (@ "Adnd SubView:% F", [[Date of NSDT] IntervalsCity Date: Started]); [Self.view addSubview: entityFormView.screenView]; Delawe (@ "Eddind Barriers:% F", [[Date of NSDT] Time Sentence Cadence: Start]); [Self.view addConstraints: [NSLayoutConstraint Visual Format with Hurdles: @ "H: | [Screenview] |" | Options: 0 metric: zero views: @ {@ "screenview": entityFormView.screenView}]]; [Self.view addConstraints: [NSLayoutConstraint Visual Format with Hurdles: @ "V: | [Screenview] |" | Options: 0 metric: zero views: @ {@ "screenview": entityFormView.screenView}]]; Delaag (@ "Finished, Animation is doing:% f", [[Date of NSDT] Time Intervals Date: Beginning]); [UIView Anamat Withdrawal: 1 Animation: ^ {entityFormView.screenView.alpha = 1; } Closing: ^ (BOOL Finish) {DLog (@ "Completely Finished:% F", [[Date of NSDT] Time Intervistence: Started]); }]; }
The first time I run this code, it happens in ~2 seconds, I close it and open it again and it is ~ Takes 1.2 seconds:
debug | - [Map-viewer map view: comment widget: callout disable control:] | Fired DEBUG | - [Map-viewer map view: comment widget: callout disable control:] | Thread: & lt; NSThread: 0x1d548bc0 & gt; {Name = (zero), num = 1} DEBUG | - [Map-viewer map view: comment widget: callout disable control:] | Addind Subview: 0.005463 DEBUG | - [Map-viewer map view: comment widget: callout disable control:] | Addind Barriers: 0.047544 DEBUG | - [Map-viewer map view: comment widget: callout disable control:] | Finishing, doing animation: 0.049323 DEBUG | __74- [View mapview controller map: annotation view: callout disable command control:] _ block_invoke1001 | Completely ended: 0.199709 DEBUG | - [Map-viewer map view: comment widget: callout disable control:] | Fired DEBUG | - [Map-viewer map view: comment widget: callout disable control:] | Thread: & lt; NSThread: 0x1d548bc0 & gt; {Name = (zero), num = 1} DEBUG | - [Map-viewer map view: comment widget: callout disable control:] | Addind Subview: 0.006285 DEBUG | - [Map-viewer map view: comment widget: callout disable control:] | Barriers to the joint: 1.069605 DEBUG | - [Map-viewer map view: comment widget: callout disable control:] | Finishing, doing animation: 1.082836 DEBUG | __74- [View mapview controller map: annotation view: callout disable command control:] _ block_invoke1001 | Completely Finished: 1.1 9 4132 When I delete UIView:
- (zero) removeForm {[UIView Animation: 1 Animation: ^ {self.screenView .alpha = 0; } Closing: ^ (BOOL End) {[self.screenView removeFromSuperview]; }]; } Why is it adding this subview after taking so long for the first time? It looks like it's running for the first time, alpha animation is not happening, which is very weird completely ended log animation after log 1s There should be a timestamp about that I will ask to start an investigation, because it is the first thing in the sequence of events that seems to be wrong. Maybe when it is running for the first time, the UIVEE alpha is already 1.0, so it does not fade in?
No comments:
Post a Comment