Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Improve this question
I would like to create something like the image below in my iOS app. What is the best way to approach this, note the rows and the columns can vary.
The easiest way I thought of was to insert html table into UIWebView, but not sure if there is a way to intercept radio button clicks like there is for a regular button by making it a "href link"
A little unrelated to what you have as the title of your question, but maybe look at using UISegmentedControl. It's the closest thing to radial buttons that exists in the Objective-C world.
If you went with a segmented control, you no longer need to worry about columns, intercepting touches, and a lot of the other problems you mention in your Question - it could all be done in a normal UITableView. You would have to create some custom UITableViewCell subclasses to get the segmented controls in, but there are a lot of good tutorials (YouTube, Apple Docs, SO) on how to set those up.
From iOS 6+ you could use the UICollectionView class to build up a grid. Managing the values in the data source (representing if a radio is checked or not) is something you'd have to implement yourself.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 9 years ago.
This question appears to be off-topic because it lacks sufficient information to diagnose the problem. Describe your problem in more detail or include a minimal example in the question itself.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Improve this question
I have a finished project made by a friend, but in a textfield he put a numeric keyboard, where it should be a normal keyboard. There is a lot of code and i don't know how to change the keyboard type.
What word or sentence should i find, and which value needs to change?
Thanks a lot.
It the project uses a storyboard, you should look there first. Open up the story board and find the field that is showing the wrong keyboard. On the right side of the screen, select the attributes inspector. One of the options will be "Keyboard". Change that to the desired keyboard type.
If it is not set there, then you will have to look in the code. You can look for where it is set in code by searching for UIKeyboardType. It will be using one of the following options.
UIKeyboardTypeNumbersAndPunctuation
UIKeyboardTypeNumberPad
UIKeyboardTypePhonePad
Change one of those to UIKeyboardTypeDefault, and run the app again. There probably won't too many places where you see this, so you should get it right within a few tries.
[textField setKeyboardType:UIKeyboardTypeDefault];
In Interface Builder, select your text field and open Attributes inspector. There's 'Keyboard' attribute. Set it to whatever you need.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I am creating an iOS application for iPhone (and probably iPad). I am using the control UITableView with a storyboard, the problem that I am having is that I must do a few things and I am kinda lost.
The cell in the table view must have the title, subtitle and like 2 lines of text as preview (like the mail app).
i dont know where to write the text of the detail, if hardcoded or if theres like a file for texts.
I need to save favorites cells and show then in a separate tab in the bottom menu.
Edgar , I highly recommend you before trying to do a solid app reading Apple's documentation, to get a complete understanding on the core concepts of delegation and data sourcing as the tables must be filled and managed thru code.
https://developer.apple.com/library/mac/documentation/general/conceptual/devpedia-cocoacore/Delegation.html
cellForRowAtIndexPath is the method where tableView cells are configured.So for example
cell.textLabel.text = #"some text"; or cell.imageView.image = [UIImage imageNamed:#"example.png"]; etc. Also refer these tutorials.link1,link2.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I hope everybody is fine. I'm new to iOS programming and I have a question. In my app I have an UISearchBar and two UITableView. The first UItableView is the one the have the list of items and I want to use the second one to display the result that I get from the UISearch. My question is if there is a way that I can connect the second UITable to display the result? I think using control and dragging it but it didnt work. Please is anyone can help me
You don't need 2 tables. IOS has UISearchDisplayController component which already has 2 tables, one for showing data and one for search results.
I suggest you to read this article http://pinkstone.co.uk/how-to-create-a-searchable-uitableview/
and to download project from it https://github.com/versluis/Table-Seach-2013
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I want to create a drop up menu like this.
But I have no clue what it is called, so I can't look for it.
And by the way, are there others methods to create such a "more option"-menu? I know there is the UIPickerView, but if i have only 2 or 3 buttons to choose from it is fairly unnecessary to implement a whole pickview.
Thanks in advance!
David Wong is right, you always can use UIActionSheet for iOS 7 style drop menu, but if you want to use some cool custom controllers here's the list:
Drop menus
REMenu
LBActionSheet
NIDropDown
LHDropDownControl
kxmenu
Modal (cool ones)
KGModal
RNGridMenu
KNSemiModalViewController
But if you're just starting your journey of iOS development, you better stick with UIActionSheet.
Good luck!
That's a UIActionSheet
Just adds buttons and use the various show methods to bring it up. Don't forget to set the delegate to handle which button gets pressed.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Questions asking for code must demonstrate a minimal understanding of the problem being solved. Include attempted solutions, why they didn't work, and the expected results. See also: Stack Overflow question checklist
Closed 9 years ago.
Improve this question
I have a blank, transparent button which, when I drag left and right, and up and down, want a number to get incremented and decremented depending on how far away from the button the finger is.
Quite like the way the music app on the iPhone has the scrubbing feature, where you can get a more precise value?
This would require you to create a custom control heavily relying on gesture recognizers. I would advise you to search more on this topic.
Also, take a look here - http://oleb.net/blog/2011/01/obslider-a-uislider-subclass-with-variable-scrubbing-speed/