Is it possible to have a TextView without a system Keyboard but what i write by myself? [closed] - iphone

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I just want to use my own keyboard and input method when type word in a TextView in my own apps without jailbreak my iPhone

You can make your own view and set it as the inputView property of the text view. You'll need to write your own event handling code to update the text after each key press.
I have heard anecdotally on this site that Apple aren't too keen on keyboard replacements if your keyboard is still basically a keyboard (ie just qwerty buttons, but different shapes or looks) but if you have genuine different functionality in there you shouldn't have a problem.

Related

Change the collectionView cells layout on button click in swift [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 1 year ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
This is the main scenario which is a collection view and by pressing View button (highlighted in the image) i want to change the layout of cells like tableview cells shown in the 2nd picture.
Result needed:
You can create two UICollectionViewLayout objects, each with their layout options, and use setCollectionViewLayout(_:animated:) to switch between the two.

How do I check if passwords match in storyboard? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I am basically making a login page, and want to make sure that passwords match before I can enable the continue button. I looked at the storyboard intro on the Apple website, but I didn't really understand exactly how I can link my storyboard to code and check if the passwords match.
You don't, exactly. In your storyboard you'd connect the various fields in your user interface to IBOutlets (for connecting things, the nouns of your UX) and IBActions (for responding to user actions, the verbs) to your view controller.
Fields like UItextField also can have a "delegate", an object that helps them manage their behavior. You'd hook up your view controller as a delegate of both of your password input fields, and when the passwords don't match, the view controller logic would disable the continue button.

"Swift Core Data" How to add a Scope Bars to UISearchBar? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
So, I have a tableView with NSFetchedResultsController! I have also a UISearchController, and works perfectly! But I need a Scope Bars to the UISearchBar. How to create and how to add a Scope Bars in Swift Core Data?
Thanks!
Just give the search bar scopeButtonTitles at the time you obtain it from the UISearchController. As you present the search controller, set the search results controller as the search bar's delegate, so it will get searchBar:selectedScopeButtonIndexDidChange: when the user changes scope buttons, and there you just call updateSearchResultsForSearchController and deal with the search as you're already doing — taking account, now, of what the current scope button index is.

How is implemented the "Edit Details" view in the Contacts app? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
Is a UITableView set in "Edit Mode"?
If so:
Are several sections used? (Such as a section for phone and email?)
Does each section have a "Add row" row (i.e. "add phone"), so I can add a row at the end of each section?
Both questions can be answered with YES.
You can verify this by watching the animation when a new field is added or deleted. This is the usual insert and delete UITableViewRowAnimation. Also the deletion button on the left side of the row is the UITableView delete button.

Best practice for clear button in a UITextField [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
When adding a clear button to a UITextField, which option do you normally select for when the clear button appears (appears while editing, appears unless editing, always visible)? I want to choose the one that is unintrusive but useful.
Usually I use "appear while editing" too. But it really depend of what is the purpose of the textfield.
For example:
- If you use the textfield for search like function, you may want to leave the clear button always visible, so if the use want to clear the text it's faster.
- If it's in a registration page, it's not really useful to have a clear button (you may press the x by mistake) because it's just one time competition.
(Sorry, my english is not the best :) )
I prefer it to appear while editing.