Peter
Peter

Reputation: 193

Annotation in MapKit Map is transparent

When I place a Pin into a visible Map, I can't set a background color. The text keeps to be on top of a transparent background. If I show a modal View on top of the MapView and dismiss it again, the MapView show the white background without changing anything with the Map code.

Did someone has similar effects learned and has a solution?

transparent background

Upvotes: 0

Views: 301

Answers (1)

Peter
Peter

Reputation: 193

FOUND IT and it was of course ME.

In tableView:cellForRowAtIndexPath: I was not careful and placed this line of code two times in the same cell declaration:

Cell = [[UITableViewCell alloc] initWithFrame:CGRectZero];

Silly me, but this causes the transparent background since - I think - two cells were initialized which lead to this.

Upvotes: 1

Related Questions