How to change displayed buttons based on preferences [closed] - ios

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 9 years ago.
Improve this question
I have to use 13 Preferences in my application.
I have 13 buttons for these 13 preferences.
But i need to display only 4 buttons in active on the home screen, which we have select 4 from these 13 preferences
when i click on the preference button (top -right corner to the home page).
preference list will displayed with 13 preferences.
When i select any preference the corresponding button should be replaced with the previous button.
what to do? thanks in advance

Well you need to follow the next:
[if its a limited number of buttons]
1-. Create a IBOutlet for each button.
2-. Maintain a an array for the preferences
3-. Implement an NSNotification in the main screen and call it from preferences, when you dismiss, and send the array
4-. Modify the UIButton
[if its different number of buttons]
- It's almost the same but you need to create them in the code, and then place them. Keep track of the last button x,y,width,height. And the other button could be oldX+oldWidth+offsetX
If you have any problems with the code just tell me

Related

How can I automatically press a button on the keyboard when it pops up? For example the letter "A" [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 10 months ago.
Improve this question
I want the letter "A" to get pressed on the keyboard without the user pressing it manually.
Or the "return" button.
You should first think of the basic flow of how the app should work.
Do you want the A to be pressed after x amount of time? Create a counter.
Do you want it after x item appears? Use .onAppear {}
Do you want it after x data refreshes? Use .onChange..
Think about the flow of the app then use the right tool to trigger it.

Popup UIPickerview for swift 3 [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this question
I'm wondering if anyone knows a Popup UIPickerView Control that looks like this exactly..
But instead of date picker I want it to be a Normal Picker. I have searched Cocoapods and Github and I always get Date pickers. And when I found a Popup Picker it was using Swift 1 and it was not updated.
So There must be something. I dont think that iOS users always have to implement the popup by them selfs everytime they need one for a view.
Please note that I am asking for this control for Swift 3
I think that you can create yourself.
Use a normal picker embedded in a classic UIView (with round corner) and bottom of this view you can add 2 button (cancel, done) and a label for the title.
In any case always try to consider the user experience not exactly the best...

Autoscrolling of images and perform action on click images [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 6 years ago.
Improve this question
I want to create autoscroll of images and want to perform action on click of image. [Same as iTune home page]. I really stuck to perform this task.
Please give me some suggestion or any reference how I can perform same.
Autoscroll is main thing for me as well images should scroll in infinite loop same as iTune Home Page . Thanks.
You can use table view for show each cell.
if you want to show images in each cell then use collection view inside a table view cell.
so it's look like a app store home page.

Stock code/framework for Guess the word game - keyboard UIView [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 7 years ago.
Improve this question
I'm learning iOS development and trying to make a standard common "Guess the word" game, which displays a couple of photos and you need to fill the word which describes this photos.
I took a look in at the app store and see a lot of games which use a same UI keyboard view. For example:
My question is if there is any open source framework for this kind of keyboard or I should build a new one by dynamically add a few Labels\Images according to the letters and handle the touch events and fill the letters?
It wouldn't be particularly difficult to create a view such as this. It's a trivial view hierarchy with 13 buttons in fixed positions.
Use it as a learning exercise and implement it yourself, you could do it mostly in Interface Builder as a nib, a custom UIView subclass with a nice delegate interface such as this:
#protocol GameKeyboardDelegate
// Called when a letter button is tapped
- (void)gameKeyboard:(GameKeyboard *)keyboard tappedKeyWithName:(NSString *)keyName;
// Called when the bomb button is tapped
- (void)gameKeyboardTappedBomb:(GameKeyboard *)keyboard;
// Provided to let your game logic determine whether or not the bomb button should be enabled.
- (BOOL)gameKeyboardShouldEnableBombButton:(GameKeyboard *)keyboard;
#end

iOS Secure Text Input For UITextfield [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 7 years ago.
Improve this question
im making a Lib for online payment, which will be plugged in merchant's apps, in my Lib have a popup view with Textfield which letting the user to input their PIN code in it
As i think the merchant can write something to get the inputted key in their app in background when my view is show, so i would like to know if thats possible and how to prevent something like that?
Prevent something like capturing keyboard event without needing of textfield delegate like in click here or click here
Thanks
You can make it difficult for the hosting app, but you will never be able to make it impossible to read the PIN. To make it difficult, you will need to create your own PIN entry with its own "keyboard" possibly similar to the PIN entry for the iOS lock screen.
I would avoid using a keyboard, as users can insert their own keyboard, and thus wouldn't use any of the standard text entry fields. It shouldn't be too hard to create a matrix of 11 buttons (0-9 and a backspace) and the code to display it.

Resources