I am facing a weird issue to tap UIButtons with Xcode 9 and IOS 11.2. The buttons are in a UIView and are simple call to action buttons such as submit and cancel.
When I click on these buttons, the action is triggered only when I click to the left most part of the button. I have checked that the view width is enough to allow the button to be inclusive in it as a whole. However, for some reason, I am not able to see why I am not able to click the button. A similar problem is encountered in other views too.
Any help is much appreciated.
Thanks!
Related
I tried to create a simple programmable button
editor view
and this is what I see when I view the slide
slide view
Button bifurcates!
How can this problem be solved?
I tried trying to fix it by poking at everything I see and saw the monitor selection option. I have 3 screens, I chose the main monitor. This was the reason.
I've been following this guide carefully and I got stuck here.
Click here
When I try to connect press ctrl and drag on my button, a popup comes up giving me options "Leading space to container, Center Vertically in container, Equal widths, equal height Aspect ratio" I don't see the option to press my button like in the guide. I read the comments below and it seems like everyone is having this problem. I know it's an old guide so that's probably the reason why
Just right click on the button and then you can normally drag from touchUpInside action to your view controller.
Instead of control-dragging from the storyboard to the storyboard, open up the Assistant Editor with the .m/.h file you want the action code to be in, and control-drag the button from the storyboard to somewhere in that document. Then you should be able to pick between IBOutlet and IBAction.
Hope this helps!
I am working on an app for iPad. In one class, I have used a scroll view at the bottom of the screen. This scroll view has some buttons. Those button play a video or open a PDF file. When user frequently taps on those button the app crashes. I have no idea why is it happening. Can any one please tell me why is it happening and how can I fix this crash?
Regards
PC
You should track the state of your view. Which button was pressed last, and don't allow it to be pressed again until.
a) it is done loading the pdf/video
and/or
b) another button has been pressed
You might have to be more strict than that, but we cannot help more than that at this point as Till mentions in your comments
I've seen a couple of apps that show a transparent view on top of the current ui while the keyboard is present and if clicked it hides the keyboard. I looked around the web and couldnt find a solution for this problem.
Simply add a UIButton, custom type, the size of your screen and add it to your view when your text field (or other entry) takes focus. Make sure your edit view is brought to the front of its superview at the point you add the button (to ensure the edit view still responds to touch).
Add a target to the button which dismisses the keyboard ([myTextfield resignFirstResponder]) and removes the button.
Also make sure to remove the button when the textField dismisses normally.
I am working on an app for iPad. I have 6 screens. On all those 6 screens I have to add a menu bar on left side of the iPad. The app is in landscape mode. There would be a button on left side of the iPad. When user presses that button a popup appears on that button which has 6 buttons. Those 6 buttons would navigate to their respective screens. For example, when button A is pressed, it navigates to screen "a". Similarlly when buton B is pressed it navigates to screen "b" and so on. I have no idea about it. How can I implement a popovercontroller. please help.. I m in a great trouble..
regards
PC
http://www.raywenderlich.com/1056/ipad-for-iphone-developers-101-uipopovercontroller-tutorial
Wonderous tutorial on how to make UIPopoverControllers. Easily found with google too. Used it myself as well.
Good luck;)