SLComposeViewController for Twitter miscount URLs

Originator:jacopo
Number:rdar://14273967 Date Originated:26-Jun-2013 11:57 AM
Status:Open Resolved:
Product:iOS SDK Product Version:6.1
Classification:Other Bug Reproducible:Always
 
Summary:

When you try to share something using SLComposeViewController with type SLServiceTypeTwitter and you add an URL via the method addURL: or if you write it directly on the setInitialText: or in the share sheet, automatically the count of the character remained dropped down to 109 even if the URL is something like http://a or bit.ly

Steps to Reproduce:

Try to share something with the built in share sheet for twitter and adding an URL

Expected Results:

The character count is diminished by the effective length of the string inserted

Actual Results:

If the system parse an URL the character count goes bananas.

Regression:

It's seems that is always been like that, and in a social network severely character constrained every character lost is a big deal.

Notes:

On the bright side if the URL is something like 100 character long the count dropped always to 109 (please don't tell me that this is not a bug but a feature :))

01-Jul-2013 04:24 PM Jacopo Andrea Giola:
As requested from the Engineering team, I've tested empirically the same problem on the iOS7 b2 on the simulator.
In Safari try to go on jury.me an share the URL with the built in twitter sistem. If we count event the http:// in the character count we found a total character count of 14 but the remaining character count drop to 118.
There is a stunning 8 characters missing!
I know that most sites have a larger characters count but for sharing URLs already minified with external services is a waste of precious character.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!