ios6

UILabel text not changing, however xx.title is working

浪子不回头ぞ 提交于 2019-12-12 12:29:19
问题 I have two view controller. In first view controller I have list of names. When I click on that, I want the same name to be displayed in second view controller. I have below code. -(void) tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // PropDetailViewController is second view controller PropDetailViewController *prop = [self.storyboard instantiateViewControllerWithIdentifier:@"prop"]; ListOfProperty *propList = [propListFinal objectAtIndex:indexPath.row

UIPageViewController - first rotation resets views to initial page?

夙愿已清 提交于 2019-12-12 12:27:57
问题 I am trying to understand Apple's default template for a Page-based application. That template shows a sort of calendar with one page for each month of the year. When compiling the template without any changes, I noticed something odd. When the app launches, it displays in portrait mode, and when - after flipping through some of the pages (say, to June) - you change the rotation, it reloads in landscape mode showing two pages, BUT STARTING WITH JANUARY. This happens only once, though. On

Positioning Navigation Bar buttons in iOS 7 [duplicate]

◇◆丶佛笑我妖孽 提交于 2019-12-12 10:27:31
问题 This question already has answers here : UIBarButtonItem with custom view not properly aligned on iOS 7 when used as left or right navigation bar items (15 answers) Closed 6 years ago . I am using custom image for navigation bar button.In iOS 6,if we set the left bar button item with button,its x value starts from 10px. But in iOS 7,if we do the same thing,x value of button starts at 20px. Is there any way we shall make it start from 10px as the buttons appearance is not so good with that in

How to resize App for Iphone 5?

久未见 提交于 2019-12-12 10:22:40
问题 I'm creating a universal app. Everything is looking great on the ipad/iphone but when I switch my storyboard view to the iphone 5 or run the simulator as the iphone 5, there is an inch or so at the bottom of just whitespace. I've tried turning on autolayout and using that, but with no luck. I've also tried to create -568h@2x.png versions of my images to see if it will auto-resize with those, but it doesn't. Does anyone have any other ideas I could perhaps try? Thank you! 回答1: I found the way

How to remove location services request from PhoneGap iOS 6 app?

妖精的绣舞 提交于 2019-12-12 10:20:06
问题 I am using PhoneGap 2.8 to create an iOS 6 app. I am building it in XCode, not using PhoneGap Build. My app does not require location services, but uses the camera. Every time it returns from the camera.getPicture() call, it shows a dialog to allow my app to use location services. If I say no, or location services are disabled, the photo does not get passed back to my app. This happens even if I deny the camera app location services in the privacy settings. I have also edited my config.xml

How to replace buttons on a toolbar under UIWebView keyboard on iOS 6?

妖精的绣舞 提交于 2019-12-12 10:08:31
问题 How to replace buttons on a toolbar under UIWebView keyboard on iOS 6? The following code works fine on iOS 5.1 but doesn't work on iOS 6: UIWindow *keyboardWindow = nil; for (UIWindow *testWindow in [[UIApplication sharedApplication] windows]) { if (![[testWindow class] isEqual:[UIWindow class]]) { keyboardWindow = testWindow; break; } } for (UIView *possibleFormView in [keyboardWindow subviews]) { // iOS 5 sticks the UIWebFormView inside a UIPeripheralHostView. if ([[possibleFormView

iOS 6.1 is acting differently with willTransitionToState

◇◆丶佛笑我妖孽 提交于 2019-12-12 09:45:13
问题 I'm subclassing my UITableCell in order move the Minus image and the Delete image in EditMode to the oposite direction. It worked great so far but in iOS 6 when I use reloadData on my tableView the minus image jumps to the left side of the cell instead of staying on the right. I have no idea what changed in iOS 6 to trigger that behavior. I don't know if that's what is causing the issue but I've logged all the origins in iOS 5 and iOS 6 and the only difference was: iOS 5.0: Log 5 - State 1

Why does my node.js / socket.io app not work on iOS6?

坚强是说给别人听的谎言 提交于 2019-12-12 08:33:02
问题 I thought the whole point of socket.io was to not have to worry about modern browsers? lol Anyway, I am new to socket programming. I have a small app that simply mimics mouse movements. You open several browsers and when you move the mouse, your actions are recorded in the other browsers. It moves a small square. Kinda cool. However, when I open it on my iPad (iOS6) nothing! Sockets isn't connecting. I even put an alert message in the connect event and nothing. Works in IE, FF and Chrome just

UICollectionView with variable cell sizes

半城伤御伤魂 提交于 2019-12-12 08:13:54
问题 I'm struggling a little bit with the size for cells in UICollectionView. In android, you can easily "wrap" the size of the cell. Just like in iOS, you have a function call 'GetCell' and you decide how big it will be. The difference in iOS is that in the "getCell" function (of UICollectionViewController) it seems you can't choose the size of the cell (or the contentview). If I change the size, it will ignore it and use anyway the general 'ItemSize' of the CollectionView (which is the same for

Is there a horizontal UIRefreshControl?

与世无争的帅哥 提交于 2019-12-12 08:06:57
问题 You can add UIRefreshControl to UICollectionView (or any UIScrollView for that matter) by adding it to collection's subviews: UIRefreshControl *refreshControl = [[UIRefreshControl alloc] init]; [refreshControl addTarget:self action:@selector(handleRefresh:) forControlEvents:UIControlEventValueChanged]; [self.collectionView addSubview:refreshControl]; This doesn't work when collection view layout has UICollectionViewScrollDirectionHorizontal. I tried overriding layoutSubviews to put refresh