How to highlight the button in backgroundview when popupview appeared? - ios

Is there any code for highlighting the button in backgroungview? If I Press the button it should be highlighted and also popupview should appear in the same screen.Like this image

While clicking , you just add the another button to UIWindow.... So u get the popup like appearance of button..

Related

how to add slide menu close button on navigationbar

I have implemented the slide menu it has a close button but the close button goes under the navigation bar. How it brings it above the navigation bar and slide as menu slider.
Here is how I want the close button.
Try this :
let window = UIApplication.sharedApplication().keyWindow!
window.addSubview(menuView)
window?.bringSubview(toFront: menuView)

How to change alpha of uinavigation item

Now,when I clicked backbutton,the alpha of leftbarbutton item changed.
But I don't want to change alpha of leftbarbutton's arrow when I clicked backbutton.
I uploaded picture which alpha is changed when i clicked back button.
How can i realize?
Initialise the UIBarButtonItem with a UIButton as its custom view, and set the the button's adjustsImageWhenHighlighted property to false.

UITextField inputView displays undo, redo, paste buttons

I have created a custom inputView for my UITextField. The view itself looks and functions great, but on the iPad I'm getting undo, redo, and paste buttons above my custom inputView. How do I remove those buttons? They don't have any functionality, but they should be removed.
With Swift 3 and XCode 8 I was able to remove the bar by removing the two button groups on the text field input:
self.textField.inputAssistantItem.leadingBarButtonGroups.removeAll()
self.textField.inputAssistantItem.trailingBarButtonGroups.removeAll()
// hide undo, redo, paste button bar for textfield input view
UITextInputAssistantItem* item = [your_textfield inputAssistantItem];
item.leadingBarButtonGroups = #[];
item.trailingBarButtonGroups = #[];
will hide the top bar for input view.
Reference:How to hide the shortcut bar in iOS9
Try removing the inputAccessoryView:
self.textField.inputAccessoryView = nil;

UITextField is not clearing when pressing button

I want to clear my UITextField on button click but when I press the button it doesn't clear. Here is my code:
self.textfiled = #"";
Use
self.textfiled.text=#"";
instead of
self.textfiled=#"";

ios - makes appear all cell delete button by an action

I have a table view (filled by customs cells) and my idea is have a tabbar button (such as "edit button"). Pressing on it, in all row, the button cancell will appear. Is it possible?
You can create the code for the button (you know... UIButton* button = [UIButton alloc]init];) in your cell and set it to Hidden = YES, then add a BOOL to check if the "edit button" was pressed, lets name it BOOL editActive, then when the button is pressed you will check the editActive, if its NO then the Hidden value of the button will be NO and you reload your table with [yourTableView reloadData], otherwise, if editActive = YES, then you must hide your "Cancel button" in the cell and once again use [yourTableView reloadData]

Resources