Best practice for clear button in a UITextField [closed] - iphone

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.

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 to change name or hide "New" tab in top nav bar in pligg cms? [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 8 years ago.
Improve this question
I want to rename the "New" tab in top navigation bar in header.tpl but after i rename and save it, nothing changed and an error 404 page appears. please help me I want to hide the New tab in nav bar, which is not working...thanks a lot.
To change the word "New" you should:
Login to your Admin CP.
Expand the Modules menu.
Click Modify Language.
In the Filter Text box type New.
There are quite a few you need to change if you want your new word shown everywhere. These are the values I have changed:
PLIGG_Visual_Search_Status_New
PLIGG_Visual_Pligg_Queued
PLIGG_Visual_RSS_Queued
PLIGG_Visual_Breadcrumb_Unpublished_Tab
PLIGG_Visual_Breadcrumb_Unpublished
PLIGG_Visual_Breadcrumb_Queued
PLIGG_Visual_User_NewsUnPublished
PLIGG_Visual_AdminPanel_New
PLIGG_Visual_AdminPanel_Mark_New
PLIGG_Visual_EditStory_Email_NewText
Or, to hide the New tab you should:
Edit templates\bootstrap\header.tpl.
Find and Remove <li {if $pagename eq "new"}class="active"{/if}>{#PLIGG_Visual_Pligg_Queued#}</li>.

Is it possible to have a TextView without a system Keyboard but what i write by myself? [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 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.