UIPicker swipes where responding perfectly in the Iphone simulator with SDK 2.2, but i am now testing with a new version of the simulator, and swipes are not working. I went trough the documentation and i cant see any changes on the API. So im asumming that something is wrong and the SDK 2.2 is letting me get away with it.
The Picker uses custom views to display an image and text beside it. The picker does change position correctly when you do a single tap on a row of the Picker. But if you try to swipe it does not respond (sometimes it moves a few millimeters). I thought the custom view for each row was not letting the picker detect the swipes, so i added self.userInteractionEnabled = NO in the custom view, but it hasn't made any difference.
Your help would be appreciated,
Thanks
The problem is that the UIPicker is inside a UIScrollView. To fix it set the UIScrollView.scrollEnabled to NO in order to see the swiping return.
Related
Im kinda new to Stack Overflow so bear with me please. I am trying to design an iPhone app and I noticed a feature on Huffington Post app that I have been trying to replicate with a different style. I am confused on whether they are loading this as a html inside a webview, or if they are reproducing this programmatically on XCode.
I have looked at UI Picker and UI PopOverController and neither can replicate into that. Can someone give me some advise on what element I have to use in XCode?
Here are some attached screenshots
Based on what your screen shot looks like, here is my guess of what they did:
On the view which they bring up the "popover", they have a UITableView with custom UITableViewCell. At the right end of the UITableViewCell(the image with plus sign) is a button, and based on the position of the button, they can decide the position of the popover and direction of the arrow.
They used a custom popover control. Inside the popover, there is a UITableView take all the space.
If you wanna do the same thing, you will have to know
How to use custom UITableViewCell.
How to do popover on iPhone.
Delegation if you wanna the view underneath to react to what you click inside your popover.
I can provide more details if you need.
Im working on an ios app and my question is how to change the default button on swipe to delete on a uitableview. i see i can change the text with titleForDeleteConfirmationButtonForRowAtIndexPath but i want to change the image completely. ive been looking around for a way and all the posts about it may be out of date so just want to confirm with people before i go ahead with this. What im going to do is add a gesture recogniser to the cells themselves to catch the users swipe on individual cells and then add in my custom button and re arrange the cell frame from there and just forget about apples default swipe to delete completely. how that sound?
Here is a great open-source class for doing exactly this, based on the behavior of the Twitter app:
https://github.com/thermogl/TISwipeableTableView
i'm porting at the moment a iPhone-App to iPad.
I have to redesign some views but some views i want to present in iphone-size as popover.
Popovers are working well, but the content in the view in the popover has a wrong position.
There is a white border around the view an all UI-elements have a wrong position.
How can I make a correct position?
The problem was a missing target-membership of the NIB-Files to show.
I added the nibs to my ipad-Target and it worked.
But there is a new problem: It only work every second build.
Every second build there is the old error.
Have anyone an idea?
I have a tabBar in my application. In one of the section i have two views which i toggle between using segment buttons.
In one of the view i have MapView which i use to display list of users using their pic as annotation. On the other view i have tableView which shows the same users in table format.
Now everything is working fine, i am getting all the users and it displays fine on the map. It works perfectly most of the time on all device and all iOS but sometimes when i bring the mapView to front or toggle or try to zoom in. Both the views (tableView and mapView) just gets removed somehow and i see black screen (which is btw my superview so thats not a problem).
Does anyone know why this happens. It happens frequently on iPhone 3G the older iPhone.
Thanx for any help.
I've had the same problem. I think it's due to low memory to which your app responds by deallocating the tableView and mapView. My solution was to have both views allocated in viewDidLoad. I'm not 100% sure about this, but you could give it a try.
Im struggling a bit with the UIkeyboard, I have a datePicker, IntervalPicker some custom pickers and a few other UI elements that live in the same part of the screen as the keyboard.
I have build a factory class that places these on the screen depending on the state of the app, I control animation and layering myself and here the problem starts. It all works for the elements I mentioned, but the Keyboard I can't seem to control to the same extend.
I would like to instantiate a keyboardView, place it on the screen with an alpha of 0 inside an UIView and when Im good and ready, fade and animate it in.
It seems I can only get a Keyboard on the screen if I build a textField and then set it as firstResponder, this results in the keyboard animating in as expected, but it completely breaks my factory approach.
Hope it makes sense:) thanks for any help given.
The keyboard isn't a regular view. You have to stop trying to use it like one.
How to pull up a UIKeyboard without a UITextField or UITextView?
Don't fight with the SDK, make the sdk your friend.