Post

Replies

Boosts

Views

Activity

Clustering stop working after removing all annotations
Hi!I noticed a strange behavior on MapKit when using the iOS 11 clustering feature.If you add some annotations on a map (with same clusteringIdentifier and same displayPriority) MapKit will correctly merge together annotations that are close.The problem is that if you remove all the annotations and then you add them back the map will no more merge the annotation together. It’s like the clustering feature simply stop working.I don’t really know if it is a bug or if I miss something.Someone else have noticed this?Alan
6
0
5.4k
Dec ’17
Find visible cluster annotations (MKClusterAnnotation)
Hi!I’m currently developing an app with MapKit on iOS 11 and I’m using the new annotation clustering feature.At some point I need to find all the cluster annotations currently visible on the map.I tried iterating trough the mapView.annotations array and looking for annotations that are MKClusterAnnotation. The problem is that it seems that the annotations array does not only contain the currently visible clusters but also other clusters, probably the clusters created in the past. For this reason I cannot know which clusters are currently visible and which are not.You can reproduce this by adding some annotations on a map, zoom out the map so that the annotations start to group together and then zoom in the map so that the annotations become ungrouped until no more clusters are visible on the map. If you look in the map annotations array you will still find many cluster annotations.Someone know how I can get only the list of the cluster objects (MKClusterAnnotation) that are currently visible on the map?Thank youAlan
1
0
889
Nov ’17
Input focus issue inside iframe
Hi!I currently developing a mobile website and found that Safari on iOS has some problems setting the focus on inputs when they are inside an iframe.When in a page you have many inputs you can tap on a field and then use the next / previous buttons on the keyboard to navigate between the fields. When the focus move to another input Safari scroll automatically the page centering the field in the page. This is great and works well.The problem is when the fields are inside a page of an iframe. In this case when you change focus from one field to another Safari has some kind of issue; the page “bounce” and the focused field is not centered in the page.I have made a video of a simple page that has this issue. In the first part of the video the page without the iframe is loaded and the focus works correctly. In the second part the page with the iframe is loaded and the issue is visible.http://www.dale1.ch/documents/safari_iframe_focus_issue.movThe code of the first page (testinput.html) where the focus is correctly handled is this:<!DOCTYPE html> <html> <head> <title>Test input</title> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" /> </head> <body> <div><span>Input 1: </span><input type="text" tabindex="1" /></div> <div><span>Input 2: </span><input type="text" tabindex="2" /></div> <div><span>Input 3: </span><input type="text" tabindex="3" /></div> <div><span>Input 4: </span><input type="text" tabindex="4" /></div> <div><span>Input 5: </span><input type="text" tabindex="5" /></div> <div><span>Input 6: </span><input type="text" tabindex="6" /></div> <div><span>Input 7: </span><input type="text" tabindex="7" /></div> <div><span>Input 8: </span><input type="text" tabindex="8" /></div> <div><span>Input 9: </span><input type="text" tabindex="9" /></div> <div><span>Input 10: </span><input type="text" tabindex="10" /></div> <div><span>Input 11: </span><input type="text" tabindex="11" /></div> <div><span>Input 12: </span><input type="text" tabindex="12" /></div> <div><span>Input 13: </span><input type="text" tabindex="13" /></div> <div><span>Input 14: </span><input type="text" tabindex="14" /></div> <div><span>Input 15: </span><input type="text" tabindex="15" /></div> <div><span>Input 16: </span><input type="text" tabindex="16" /></div> <div><span>Input 17: </span><input type="text" tabindex="17" /></div> <div><span>Input 18: </span><input type="text" tabindex="18" /></div> <div><span>Input 19: </span><input type="text" tabindex="19" /></div> <div><span>Input 20: </span><input type="text" tabindex="20" /></div> <div><span>Input 21: </span><input type="text" tabindex="21" /></div> <div><span>Input 22: </span><input type="text" tabindex="22" /></div> <div><span>Input 23: </span><input type="text" tabindex="23" /></div> <div><span>Input 24: </span><input type="text" tabindex="24" /></div> <div><span>Input 25: </span><input type="text" tabindex="25" /></div> <div><span>Input 26: </span><input type="text" tabindex="26" /></div> <div><span>Input 27: </span><input type="text" tabindex="27" /></div> <div><span>Input 28: </span><input type="text" tabindex="28" /></div> </body> </html>This is the code of the page that has the issue (testinput_iframe.html):<!DOCTYPE html> <html> <head> <title>Test input</title> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" /> </head> <body> <iframe src="/testinput.html" /> </body> </html>The issue is present in Safari on the iPhone, iPad and the xCode Simulator from version 8.4 to version 9.2.Someone know if this is a bug? There is way to fix it in css or javascript?Thanks and sorry for my english! 😉
9
0
22k
Dec ’15
_EXTERNAL_DATA folder not handled correctly
Hi!I have a model with an antity that have a property that use the "Allows External Storage" option. For some reason the framework does not handle the files inside this directory correctly when some of the files have the SAME data.Basically the issue is:- You have an entity with a binary property that use the “Allows External Storage” option.- You create some entities and for every entities you put the same data in the binary property.- After saving Core Data will create inside the _EXTERNAL_DATA folder a file for every entity data.- You delete all the entities from the store.- Core Data will delete only a single file and all the other files are left in the directory forever.So if you create for example 10 identical entities (same data) with 1MB of data for every entity, after deleting all the entities from the store your _EXTERNAL_DATA folder will still contain 9MB of orphaned data that will stay there forever. 😟This bug is present in iOS 7, iOS 8 and iOS 9 beta 5.I have made a sample project that illustrate this behavior:http://www.dale1.ch/documents/delete_external_data_sample_project.zipI have filled a bug report (18319761) the 12 September 2014 with all the informations needed to reproduce the issue but unfortunally is still Open and I didn't received any feedback from Apple.Alan
2
0
1.4k
Aug ’15