this is my first time working with XCode, and so I am having a lot of issues trying to figure out how to do certain things, mainly UI related.
Currently I am having three issues:
I have two buttons, and I want them both to be half the width of the screen, but I just can't get it to work (I want to show a picture, but I am also new to stackoverflow, and I don't have enough reputation).
I want the buttons to be on top of a Google Map, and as of now, the buttons aren't visible when I run the application (I'm thinking the map is on top of them, maybe).
When I click one of the buttons, I want a different set of buttons to replace the former ones. e.g. Click a button to "Start Game", and then a new set of buttons "Easy", "Normal", and "Hard" show up.
I hope you can understand what I mean. Any help is appreciated. Thank you!
for first question answer is use UIsegmented Control. check out this link
Uisegemnted control tutorial
2) put your mapview below the segmented control and adjust the size of it.
3) for third answer there are many option. you can use alert view or make a custom view and put three buttons on it and then hide the view. on the click of start game just unhidden the view.
Related
I'm working on an ios(Swift) project. In this project i want to read stories by fetching from a particular api.
But the problem is that i want only one story on my View and when i swipe right the another view with another story come from left with the effect that it is overlapping the story which is on the present view and so on until the story persist on the api.
And again when i swipe left, the most recent view(which was most recently get overlapped) with their respective story will come from right and give the effect like, it is overlapping the view which is present view at now.
And vice versa mentioned in above two points.
How can i achieve this in ios i don't. If anyone knows how to do it, please help me. I'm waiting for answers
NOTE: I don't want the pushing effect like in horizontal ScrollView. I only want the overlapping effect.
You should use 'UIPageViewController' and adjust 'transitionStyle' what you want.
I am very much new to iOS coding and Objective c. I am developing an App for learning it.
The app is from Github which i am modifying. The user can draw on the screen and can use different colors to select the pen color and can also erase the whole drawing. But i do not have much space on the mobile screen.
I was searching for something that allows me to slide a series of buttons to the left and right with swipe so i can have a lot more color for the user to chose from.
Here is an snapshot
As of now i can fit 5 colors and one erase all button. (Sorry about the GUI). I want let the users to slide the button left to righ to reveal more buttons.
There is somthing that can be done with table cell (from Github)
https://github.com/MortimerGoro/MGSwipeTableCell
But i do not want to use tableview.
Is there a library where i can do that ?
Look at UIScrollView. It will allow you to have more colors available and s very easy to to use.
You can have it free scroll, or have paging, which means it snaps to a page, similar to how the Photos app works.
https://developer.apple.com/library/ios/documentation/UIKit/reference/uiscrollview_class/index.html
Thank you #Gary,
I did find a library that did exactly what i wanted
Link : http://code4app.net/ios/LTInfiniteScrollView/54732343e24741f423b03ca0
It's the first time I'm creating a keyboard for iOS. I've created the first page with all the buttons but I don't understand how to add the second page.
For example: first page QWERTY, second page 123.
Is here anyone that can explain all the passages and functions/classes that I have to add on my codes and where precisely?
Thanks a lot
Well I haven't built a custom keyboard personally but I would make seperate views for the "pages" of keyboards and just hide away and unhide the view of the keyboard you want to show when the user presses the "alt" button. You could have as many keyboards as you like with this method and have it pre-built in the backround so that it would function very quickly to swap between them. Or animate them as you like really as views are easy to slide around. Actually sounds like a lot of fun as I have often thought about building a keyboard that has alpha-numeric values all in one, which would make filling in details on a login screen much quicker/more convenient.
I'm trying to recreate a view.
I've seen in the IMDB app and have no idea how to do the same thing.
I'm fairly new at app building, so any advice would help.
In the IMDB app when you select pics of an actor, you get a grid view of photos.
If you tap one, it goes full screen.
If you tap full screen pic, 2 semi-transparent bars appear at top and bottom overlapping photo.
These bars contain buttons and text.
How would I recreate this in my own app? Is it a special view? Modal views I know appear from bottom and fill whole screen.
Can anyone help me?
This question is far too vague, you need to attempt this and post more specific questions as you run into problems, but here's some high-level insight to get you started: (Mind you, I haven't seen the IMDB app)
A grid view of photos could be done with a UITableView or a UICollectionView (either in a full size view controller, or placed into a UIPopoverController for iPad), and when someone taps on one you could launch a new view controller that consists of simply a UIImageView filling the screen (you could do this as a full-screen modal). In any case, this view will need to have 2 views (with backgrounds set to alpha < 1.0) which will contain your buttons and text. You will set those views to hidden until the user taps on the full screen image (which you can use a UITapGestureRecognizer for).
Take a whack at it yourself, and when you run into specific issues, post them here and the fine knowledgable people here at SO will be glad to help you.
You can show a modal view without having them come up from the bottom. pushViewController:animated:(if you're using a UINavigationController),presentModalViewController:animated:,presentViewController: animated:completion: all have a BOOL option to turn animated on or off. They probably just turned the animation off.
I have been searching for a UI Control and don't know what its called, which makes it tough to find right? What UI Control in iOS 5 or 6 provides a view overlay that can swipe away? Kind of the opposite of a slide-out nav view. I am looking at the TouchArcade app as an example, where you tap an item and this slides out an overlay with an article or review. Its also possible to have several overlay's that can swipe to the right for removal. Is this a custom control? I know this must be an easy question, I just don't know what its called, and therefore, my terms don't help much in Google. The closest thing I have found is ShinobiControls Overlays: http://www.shinobicontrols.com/shinobiessentials/
I'd rather just make my own than rely an somebody else's library I have to keep up to date. On the other hand, that one does look pretty good and would save me time.
Edit:
Picture of TouchArcade as an example overlay view.
You see how the article is presented over the list view below? What controls do that in iOS? It also allows multiple overlays as you click further into each item. You dismiss them by swiping them to the right, dragging them out of view.