ios


iOS UIButton near screen edge not respond to tap normally


As shown in below image, part in the red rectangle in buttons near the screen edge cannot respond to tap normally. I've heard some mechanism in iOS that can disable touched near the edge for user experience consideration. So how to disable this mechanism? Or how to make buttons near the edge work normally.
I tried UIButton: Making the hit area larger than the default hit area. It works for "Center" button in the image but not for "Edge" button.
Thank you!
The problem may be due to frame of button. Make sure that the edge buttons frame is inside the bounds of its superview.
if you want the button in right edge of screen then set the frame for button some thing like,
CGSize deviceMainScreenSize = [[UIScreen mainScreen] bounds].size;
UIButton *edgeButton = nil;//initialize edge button
CGFloat edgeButtonWidth = 60;
[edgeButton setFrame:CGRectMake((deviceMainScreenSize.width-edgeButtonWidth), 200, edgeButtonWidth, 30)];

Related Links

Best practice for when to call requestAccess on EKEventStore
Swift 3: Passing Data Forward Doesn't Work/Crashes
How do I use NSKeyedArchiver and NSKeyedUnArchiver in Xamarin iOS?
CNContactStoreDidChangeNotification multiple times
How to add a 10px space around a tableViewCell?
iOS Today Widget control background music app
How to set destination flag when in edit scheme Xcode
Xcode 7.3.1: No matching provisioning profiles found for application
How can I check whether its parent view or subview when touch gesture event called?
Realm/iOS: Bumpy scrolling performance for UICollectionView
Check markers in UITableView are not accurate
ios adding a collectionView inside UITableView's header view
iOS app text looks bigger is Fixed by using launch screen
UIButton in subview called to method in Parent
CocoaPods - Unable to find a specification for `MobileCenter`
Can UIStackView be constrained?

Categories

HOME
unit-testing
logstash
magento
coffeescript
runnable
appium-ios
afp
image-segmentation
wxpython
fpdf
robot
application-cache
r-caret
wget
asp.net-mvc-3
xorg
numericupdown
cloudrail
git-svn
imp
javers
formio
git-bash
co
spark-graphx
c-strings
montecarlo
urlrewriter.net
centos6
editorconfig
silverlight-5.0
popupwindow
kubernetes-go-client
cloudinary
partition
visualsvn-server
eve
mergesort
integer-programming
msysgit
nscalendar
program-slicing
appdynamics
sql-insert
pseudo-element
ewsjavaapi
openwebanalytics
azure-cdn
spring-form
html-form
smartbanner
orchestrate
tpl-dataflow
paypal-webhooks
android-identifiers
netbeans-7
zenity
vispy
angular2-rc5
ultratree
sizeof
pygments
file-management
network-traffic
bash-completion
jca
document-ready
biojava
spl
many-to-one
push-api
esky
bloodhound
size-t
byte-order-mark
alt
conditional-statements
kue
slick2d
mysql5
culture
keyboard-navigation
mouseenter
hobbitmon
wmv
showcaseview
simpleaudioengine
str-to-date
memoization
couchpotato
pixelsense
qbwc
51degrees
mysql-backup
expressionvisitor
ruby-1.9.2
livevalidation
blackberry-jde
staging
automapping
n900
markitup
iequalitycomparer
contracts
fogbugz-on-demand

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App