Uibutton Questions
Ad
Example for using iOS 15's new ConfigurationUpdateHandler for a UIButton in Objective-C
I want to try out the new uibuttonconfigurationupdatehandler that's available in ios 15 to create a toggle button. there are lots of very nice
Custom UIButton : how to set background color on selection change?
I have created a custom uibutton and i want its background to be red when selected, otherwise white. so i tried this:
Show a second ImageView on UIButton
I want to add an extra image on the uibutton if my condition is true. this means that if the result of my condition is: 1) "false", then
Custom UIButton imageEdgeInsets/titleEdgeInsets not working
The imegedgeinsets and titleedgeinsets are not working for my custom uibutton class. i'm setting the insets
How to fix button in end of the screen
Hi i have this ui and i want to set button in end of the screen. how can i do this?
Create a groove button in flutter?
Is it posible to make a button like the image? it doesn't need to be circular just is there anyway to gice that groove effect to a raised button
Dragging UIView on touch not working when finger is on UIButton inside that View
I want to be able to move around uiview with finger. inside uiview is uibutton, when finger starts
UIButton inside custom UIView class not working
I know this question has been asked lots of times but none of solutions worked for me. i have a custom uiview class which i use for
Both button background color changed
When i'm using that function, the button not correctly worked. when i tapped on button then the button background color will change and when we
Button click increment only one item and stays at that item even though I click on the button multiple time
I implemented a way for my app to navigate to the next item when i click on the next button. but for some reason my app will only
Ad
How to make top navigation controller clickable?
I have the following
IOS add shadow to UIButton
Im trying to add a shadow to a button but the shadow gets added to the text of the button instead of the whole button:
Place image position on top of button programatically
I have a button on tap of which i need to show an image view which i did like below in button action let imagename =
UIButton with a different size after is load
Hi i'm trying to put a gradient background in an uibutton. this is my method but for the iphone 7 plus or 8 plus it does not cover all the
change the background color of the title in UIButton
I would like to change the background color of the title (only!) in uibutton, which contains title and image. i can only see how to change
Show UIMenu without UIButton or UINavigationButton
Users. i'm having an issue that i can't seem to figure out. i want to show a uimenu when i press a row in my uicollectionview, so i've added a
In iOS 14 how do you tap a button programmatically?
In ios 14 i have configured a button to display a menu of questions. on its own the button is working perfectly. here’s how it’s
Assign tags for dynamic UIButtons
I found this example of a dynamic view of uibuttons at:
UIButton not render exactly as XIB's contentVerticalAlignment value
I want to button 's top is align to the button's titlelabel's top , so i set the content vertical alignment to top in xib . this is works well in
UIButton with gradient border and rounded corners
What i am trying to get is the a custom uibutton that has a gradient border (just the border is gradient) and rounded corners. i almost got to
Ad
How to change UIPageViewController VCs by UIButton Swift 4.0?
I have uipageviewcontroller with 3 uiviewcontrollers ("firstvc", "secondvc", "thirdvc"). viewcontrollers changes by scroll, but i need to change
Swift: UIButton un-clickable overlapping views
When i'm unwinding a segue by clicking on a button with a cross image which is 1/4th inside a uiview and 3/4th outside
How change border color on round button (Swift)
I have four button. and two button have round corner (1-(top left, bottom left),4-(top right, bottom right)). how
iOS Why is programmatically created UIButton lacking the transition animation
I noticed that when i create a uibutton programatically it lacks any animation when transitioning from .normal to
Detect button being tapped - iOS
I'm working with objective-c and i want to detect when the user is tapping a button (not when he tapped it, but the actual moment when is being
UIButton within UIView loaded from xib not call the selector at all when click
I have struggling this issue for many days and hope someone can help me on this. i created an uiview called "mfavorite" which
Obj C ui segmented control to de/activate a button
Everyone, i can't get a segmentedcontrol in an older objective c app to activate or deactivate another button. i have tried the
Find text color of button in swift4
I am working on app and i give uibutton text color from storyboard (different for default and selected), i want both text color in a variable.
IOS - dynamic placement of uibutton
I have a weird issue : i am dynamically setting some buttons positions in either viewdidload or viewdidappear (tried them both) and set
Round left border of a UIButton
To round the bottom left corner of a uibutton, i took code from this
UIButton stretches in landscape mode
In my app i've two uibutton on top. the buttons were created via storyboard i've added "suggested constraints" and a fixed
Ad
Buttons are not working after adding as subviews to background image
I have a working login viewcontroller but when i added a background image the functionality of buttons are not working, there is no syntax error.
Back animation of UIButton doesn't work
I have a text view (textview) and a button (sendbutton). the button's bottom constraint is constraint to the view's bottom. the textview becomes
Programmatically added button not Showing touch feel in ios
I have added the uibutton in uiview in an ios application. its working fine with the target actions but the when i press on the button its not
Insert a floating action button on UITableView in Swift
I'm trying to add a floating action button (not a floating menu button) which will navigate me to the next view controller with a single click.
Align Buttons from different cells in Swift 3
I have two buttons which are on different cells from the table and i want them aligned . the first cell is consisted from 3 buttons and i
UIButton appearance setBackgroundColor effecting navigation bar now after update
Xcode or ios update has made the following code below function differently because now the navigation bar button background has a background
Cannot convert value of type 'ViewController' to expected argument type 'UIButton' in Swift 4
I'm trying to call a button function after loading it before viewdidload() like this: @ibaction func tap(_ sender: uibutton) {
UIButton title won't highlight when an image / background image is set
I have a custom button with a right-aligned arrow icon.
UIButton title inside UITableViewCell changes on reuse
I have a table view which has a data that consists of both phone contacts and facebook friends. the cell's button title should be "invite" if the
How to prevent imageView of UIButton from taking up entire UIButton?
I am trying to make an uibutton programmatically with an icon and a title (as default, icon should be on the left next to the title).
how to bring button inFront of tableviewController in swift 4?
I have a table view controller and the only way for me is to using that so please don't tell me use viewcontroller instead of tableviewcontroller
Ad
How to keep tintColor in a UIButton then click on this?
I'm, setting the tintcolor to the uiimageview of a uibutton like this: uiimage* img = [uiimage imagenamed:imagename]; icon.image =
Can't change custom class of UIButton to GIDSignInButton
I'm trying to add google sign in functionality to a custom button, and i'm following
How to execute an action on viewController1 from a button on viewController2?
So i have viewcontroller1 and i have one uiscrollview on it to make it move. i have a home button that when pressed
How to make the UIButton Text dynamic?
So i have a uibutton inside a stack view. so far the button is dynamic and shrinks in size accordingly. the issue is the text inside
How do I set constraints for this view?
I have this view which i simply cannot get the constraints down right. i even tried stack views but it still could not get it. please click the
animateWithDuration() stops after app exit
I've incorporated a glow effect into my uibuttons, (code taken from
Ad
Blog Categories
Ad