Warm greetings
I use the code below to show annotation on iOS mkmapview when clicking on the map.
MKPointAnnotation *aAnnotationPoint = [[MKPointAnnotation alloc] init]; aAnnotationPoint.title = @"Virginia"; aAnnotationPoint.subtitle = @"This is a test code .this is a test code. This is a test codeThis is a test code .this is a test code. This is a test code"; // Add the annotationPoint to the map [myMapView addAnnotation:aAnnotationPoint];
The problem is that the annotation does not fully display the text - it disables it with .... This is the result:
...
I searched for this pattern over the Internet, but with no luck. How can i do this?
By default, the size calloutthrough MKPointAnnotationmatches the size indicated on the image. Due to the very long subtitle, the subtitle text is not displayed completely.
callout
MKPointAnnotation
, . , UIBarButton UIImageView pinView.
, . !
Source: https://habr.com/ru/post/1794619/More articles:getX () has private access in java.awt.Rectangle? - javaDoes SQL Server support shard? - sql-serverUnable to make full-screen app for Galaxy Tab (Android device) - androidHow to implement multi-threaded pool in Java - javaWhat happens when a connection drops on sockets (C) - cInstalling the ASIHTTPRequest Message on the Python SimpleHTTPServer Server? - pythonInternet Explorer 6 does not display a map Bing Ajax v7 - internet-explorer-6The difference between in-process and out-of-process services - processUsing both redis and memcached, should I use api session? - ruby-on-railsMacVim Visual Selection Delete returns 3 extra characters - vimAll Articles