ios6

how to use UIActivityViewController with MonoTouch

久未见 提交于 2019-12-21 19:58:15
问题 I am trying to access UIActivityViewController from MonoTouch with the following code: var textToShare = new NSString("hallo there"); var activityItems = new NSObject[] {textToShare}; var excludedActivityTypes = new NSString[] { new NSString("UIActivityTypePostToWeibo"), new NSString("UIActivityTypeMessage") }; var activityViewController = new UIActivityViewController(activityItems, null); activityViewController.ExcludedActivityTypes = excludedActivityTypes; this.PresentViewController

glReadPixel stopped working with iOS6 Beta [duplicate]

故事扮演 提交于 2019-12-21 19:43:04
问题 This question already has answers here : Closed 7 years ago . Possible Duplicate: Why is glReadPixels() failing in this code in iOS 6.0? I currently have an App in Appstore that uses the Cocos2D framework. For collision detection I am using glReadPixels. The screen only has white and black pixels and detecting a black pixel means collision. Everything works fine up to iOS 5.1.1 but in iOS6 Beta (all of them) glReadPixels stopped working. Now the RGB values returned by glReadPixels are always

Child content view controller view has wrong bounds size from Storyboard?

筅森魡賤 提交于 2019-12-21 17:07:32
问题 This document outline from my sample Storyboard shows what I'm working with. I have a custom container view controller and two content view controllers connected via embed segues. Here is the storyboard itself. ZetaViewController has to create some programmatic views (within ZetaView, of course). I noticed when I was centering these programmatically created views they seemed really off center. ZetViewController is centering things by examining self.view.bounds.size.height and self.view.bounds

How to connect to iPhone's webkit debugger?

蹲街弑〆低调 提交于 2019-12-21 13:58:11
问题 new iOS 6 feature is, that you can debug html and javascript running on device or simulator in desktop safari. I suppose, that this feature is based on Webkit Remote Debugging Protocol. How can I connect to webkit running on iPhone without desktop Safari? I can do this for mobile Chrome running on Android using websockets, but how can I do that for iOS devices? 回答1: The ios-webkit-debug-proxy project (from Google!) does this. 回答2: You want to look at this code https://github.com/leftlogic

Error to present view controller centered in iPad iOS 6

醉酒当歌 提交于 2019-12-21 12:24:49
问题 In iOS 5 it runs correctly: PinRequiredViewController *pinView = [[PinRequiredViewController alloc]initWithNibName:@"PinRequiredView" bundle:nil]; UINavigationController *navController = [[UINavigationController alloc] initWithRootViewController:pinView]; // show the navigation controller modally navController.modalPresentationStyle = UIModalPresentationFormSheet; navController.modalInPopover = NO; navController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal; [self

Can we use a font in iOS 6 if it's not included in iOS 5?

本秂侑毒 提交于 2019-12-21 12:08:36
问题 I would like to use the font "Avenir" which is included in iOS 6. Does that mean a device running iOS 5 won't be able to see the font? If so, is there a way to fallback on a different font if "Avenir" isn't available on their device? 回答1: You can choose the font you want to be used in iOS < 6 and assign it if necessary. Define a macro like this: #define SYSTEM_VERSION_LESS_THAN(v) ([[[UIDevice currentDevice] systemVersion] compare:v options:NSNumericSearch] == NSOrderedAscending) and then you

Autorotation not working in iOS 7 , works fine in iOS 6

余生长醉 提交于 2019-12-21 12:01:07
问题 I have an app that supports landscape orientation only on some sections (Photo gallery, video, etc) and all is working fine on iOS 6 with no issues, however, in iOS 7 the app crashes. So heres my issue : start app and load initial nav controller with view controller that only supports portrait push view controller on to stack that supports landscape AND portrait rotate view to landscape pop view controller app crashes --> CRASH: **preferredInterfaceOrientationForPresentation must return a

Placeholder attribute on text input with iOS 6 from landscape to portrait

南笙酒味 提交于 2019-12-21 11:29:49
问题 I have a problem after updating to iOS 6 that is driving me nuts. It looks like any time I have the attribute "placeholder" on an input field, while rotating from Portrait to Landscape and back to Portrait again the page shifts some pixels on the left side causing a horizontal bar. I concluded after long research that it has to be something related to the meta viewport because every time I use the content="width=device-width" all works fine. P.S Yes I really need to have a percent width on

How to resolve the memory issue with Map on iOS 6

我们两清 提交于 2019-12-21 10:42:30
问题 I have created an app on iOS 6 in which I am showing the Map. The problem is there is a highly increase in memory allocation in just a simple interaction with the map i.e., on Pinch and Pan and dragging operations. I thought there may be some enhancements in the Mapkit in iOS 6 which I don't know so I tried the Sample Code of Raywenderlich but still I am facing the same issue. Please take a look on the image I have attached. I just dragged the map for sometime and there is an allocation of

Segue between two view controllers

末鹿安然 提交于 2019-12-21 07:13:12
问题 On my storyboard (shown above), I have a ViewController which holds an MKMapView with annotations. These annotations hold a disclosure icon, which when tapped, should navigate the user to another ViewController. To do so I've created a push segue between the view controllers. I've then given it an identifier of 'showDetail' and implemented the following code. - (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control { [self