This question already has an answer here:
Closed 11 years ago.
Possible Duplicate:
How to add UITextfield on click of UIButton and make it editable
I want to display the UITextField which becomes editable when click on a button.
if any one knows please give me the answer.
Create an IBAction for the UIButton like this:
-(IBAction)showTextFied:(id)sender{
yourTextField.editable=YES;//turn to editable mode if it's not
[yourTextField becomeFirstReponder];//show the keyboard
}
Related
This question already has an answer here:
Selectable objects on UITableViewCell not responding to user input on iOS14
(1 answer)
Closed 2 years ago.
In iOS 13 it works perfectly, but I am not able to make a simple tap on a button work within a TableViewCell. Is it happening to someone else? Has the way of doing this changed?
Solved!
You have to add your views to cell contentView like this:
contentView.addSubview(button)
and anchor your button to contentView:
button.topAnchor.constraint(equalTo: contentView.topAnchor).isActive = true
This question already has answers here:
How to make UITextView detect links for website, mail and phone number
(8 answers)
Closed 9 years ago.
I set the editable property of UITextView yes as I need the UITextView editable then in that case How could be possible to click the link in UITextView ? Is there anyway to fix out my problem
You have to set detect type of UITextView in implementation file like
textview.editable = NO;
textview.dataDetectorTypes = UIDataDetectorTypeAll;
This question already has answers here:
Underlining text in UIButton
(18 answers)
Closed 9 years ago.
I want to display the mail ID in my view such that clicking the mail ID should open the mail composer view.
I want to display the button text as underlined to show it is a hyperlink and for the button click event to call the mail composer view. At present, I am not able to show the button text underlined.
You can use UILabel to implement this Tack look at TTTAttributedLabel for display underline label. And add TapGestureRecognizer to label and in that TapGestureRecognizer method implement code to show MailComposer.
This question already has answers here:
Which is the best way to change the color/view of disclosure indicator accessory view in a table view cell in iOS?
(12 answers)
Closed 8 years ago.
I want that the arrow of Tablecell is visible permanently. currently it is visible only on selection.
secondly i want to change its colour from white to orrange.
How i will do this.
Regards
Nauman k
You can find your answer here:
Which is the best way to change the color/view of disclosure indicator accessory view in a table view cell in iOS?
This question already has answers here:
How can I get a check mark beside UIPickerView labels?
(2 answers)
Closed 9 years ago.
i can't find a property to set my UIPickerView checkable... in other programs, I can select a item and the pickerView show a checkmark :-(
Here I solve this problem by creating controller.With this we can able to design view with our own way.Here,I use a UITableView and some custom Delegates methods to create a picker view.
Hope,it solve your problem
Check this link also:
Click here!
You will have to make a custom picker view. There is a method that is viewForPickerView:atComponent:row: or something like that. You will need to return your own view and do your own logic to draw a checkmark.
See my answer here for an elaboration of reproducing a checkmark-enabled UIPickerView, like the one Mobile Safari uses for dropdown menus.