UITextView can not detect link & address in iOS 7 - ios6

I have iOS application which supports iOS 6 as well as iOS 7. Now I am showing text in UITextView which contains email address & website urls. In iOS 6 , UITextView detects it correctly but in iOS 7 it doesn't detect when view gets loaded. But when I click on any link , email address it starts detecting all the link / urls.
Is this a bug in iOS 7 or I am missing some settings specially for iOS 7 ? Below are the screenshots of app
1) In iOS 6+ when view loaded
2) In iOS 7 when view loaded
3) In iOS 7 when I tap on any link / email address
4) Here is the settings that I am doing in Interface builder for UITextView.
I checked some links which states that , set
textView.text = nil;
textView.text = #"My required info";
But no luck with above code.
Can any body tell me whats going wrong ? Thanks

This appears to be a bug in iOS 7.0's UITextViews. You should check out NSDataDetector.You can use this to find links, phone numbers and more http://nshipster.com/nsdatadetector/
It appears that the trick is to textView.scrollEnabled = NO. Seems to fix the problem, although if you need scrolling.

It appears that on 7.1 links are detected when Selectable but not Editable.
(IB reports Unsupported Configuration: Data Detection and Editable attributes are mutually exclusive)

try just to retype "xyz#gmail.com" or different address.
I had the same issues and had to retype email addresses instead of copy/pasting them.

Related

DotNetNuke TabOrder chanage after edit tab

How to reproduce problem :
Install Clean Dnn Version : 09.01.01 (129)
Login as Host
Click Add Multiple Pages from Content / Pages
In bulk pages to add write 5 lines... eg: Page1, Page2, Page3, Page4, Page5 (each in new line) and click add pages
At this point everything work as expected. All Tabs are in order I typed it.
After This if I go to content / pages
Click on settings icon of Page1
Select Permissions and checked All users / VIEW and than Save
Now there is a problem. The order of pages change to:
HOME / Page2 / Page3 / Page4 / Page5 / Page1
I monitor browser console and did not see any errors
step 1 : https://ibb.co/jdmktm
step 2 : https://ibb.co/b1yLR6
step 3 : https://ibb.co/cbhfR6 (add pages)
step 4 : https://ibb.co/kOh3eR
step 5 : https://ibb.co/hZoFtm
step 6 : https://ibb.co/b3b1Ym (change permission on page 1)
step 7 : https://ibb.co/bLMqR6 (wrong order of changed page)
step 8 : https://ibb.co/jCZAR6
Just found the same bug reported here:
https://dnntracker.atlassian.net/browse/DNN-10367?jql=text%20~%20%22TabOrder%22
And the error is corected in dnn 9.2
====================================
EDIT:
unfortunately after testing with 9.2 the problem is not solved...
EDIT2:
The problem is fixed in last build
I have problems with my building the sources and if i take build from dnn it work fine.
Interesting. I had that issue on an earlier version of DNN9 and upgraded to 9.1.1, which fixed the problem Make sure you report it, and include screen shots to prove it.

MFMessageComposeViewController presented without recipient field (iOS 11)

When I present MFMessageComposeViewController on an iOS 11 device it's presented mysteriously missing the recipient field. The same code works on an iPhone 6 running iOS 10.
After a lot of messing around, I found that if I remove my project-wide hiding of the status bar in my info.plist: View controller-based status bar appearance: NO
and instead manually prefer that the status bar is hidden in each of my own view controllers I got the correct behavior. This seems like a bug to me so I plan on filing a radar.
You need to set the below in each of your UIViewController subclasses if you want to retain the status bar behavior:
override var prefersStatusBarHidden: Bool {
return true
}

Drupal 7 : How to show specific block in a particular view

I want to display particular block on view page. I have added list to show specific view in a particular block as <viewpagename>, but it is not working. How can I show a particular block on a particular view page in Drupal 7?
Long time I didn't touch Drupal, however, if I remember right, after you choose a path for your view, you can add that path to the settings of the block.
so if the view is available on /view-page, add to the block setting "view-page" in the "include" section.
There is a block_views module made specifically for this reason I believe. It's in beta but works rather nicely for Drupal 7:
https://drupal.org/project/block_views
Cheers,
-cs

Backbone.js, IE 8 and Win 7

Just started to work in backbone.js and asp.net. The code is working fine in Firefox and the same code is not working in IE 8. Do I need to config something to make it work in IE 8?
Console.log works only in Firefox, not sure where to see the logged messsage in IE8 (already using the developer tool of IE 8).
Thanks
In IE 8 you can go to the "Script" tab (you'll see it on the left where there's HTML, CSS, Script, and Profiler tabs) and the console is on the right hand side in that tab.
And the answer to your first question is no, there's nothing special for Backbone.js and IE, you probably have some JavaScript that is perfectly standards compliant and of course, IE 8 doesn't like it.
For example, don't end a list with a trailing comma:
{
"something" : "value",
"other" : "different value",
}
would be fine in Firefox, not-so-much in IE.
Good luck.
I ran into this on my last project. Items like the one mentioned by John can be flagged by running your code through jslint. The trailing comma was my biggest offender
You can use http://www.jslint.com/ and cut down on some of the errors and warning that are not related to running in IE.

Drupal 7 GMAP module

I am using the gmap module for Drupal 7 along with location and node location module enabled.
I have added a simple location field in my article content type. I have enabled the location block to be shown in main content type.
Now during creation of an article when I enter location values as text fields(like countries,cities etc.) without any latitude and longitudes then the map is not displayed on the article node page.
However if i do enter some latitude longitude values(either manually) or using google map's then in the article node page the map is shown.
So anybody has any ideas about this?It should work like even if i enter a country name and state it should show me the map with the marker
Hope its not too late for the answer, probably this will be helpful to someone googling for the issue..
I faced similar problems and in the end it turned out that GeoCoding was not enabled in Location module settings for the country which I was adding entries for.
You can enable GeoCoding from Location module settings (admin/config/content/location) 'GeoCoding Options' tab.

Resources