سؤال

When my application launches, it has one button. This button has ended up with a very ugly blue outline. How can I disable this? (Code or Interface Builder solution welcome.)

هل كانت مفيدة؟

المحلول

In interface builder click on the button and then in the right hand panel go to the Attributes inspector. At the bottom of the attributes panel there is a section called "View". The first item in that section is "Focus Ring". Change this value to 'None'.

نصائح أخرى

It's 2016 and this is how you do it programmatically in Swift 2.2:

view.focusRingType = .None
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top