ios6

Gamecenter authentication in landscape only Cocos2d with CCLayer for iOS 6

馋奶兔 提交于 2019-12-20 05:16:08
问题 I'm having what seems to be a fairly common problem, but my searches and implementations of solutions have not worked out. I've built a Cocos2d game that is intended to be landscape only, but needs to access Gamecenter. Gamecenter is working, with portrait mode enabled, but it's also allowing the game to flip to portrait mode too. I've attempted the following fixes: Game center login lock in landscape only in i OS 6 GameCenter authentication in landscape-only app throws

“FBRequest requestForMe” Unrecognized selector

拥有回忆 提交于 2019-12-20 04:29:06
问题 First time posting. Just downloaded the FB iOS SDK yesterday (10/10/2012) I have gone through the Getting Started steps listed at https://developers.facebook.com/docs/getting-started/facebook-sdk-for-ios/3.1/ I'm trying to call [FBRequest requestForMe] As a part of this test code if (FBSession.activeSession.isOpen) { [[FBRequest requestForMe]startWithCompletionHandler:^(FBRequestConnection *connection, id result, NSError *error) {}]; } The test code is implemented inside of an existing

Does Everyplay support Landscape in iOS6?

天涯浪子 提交于 2019-12-20 02:54:22
问题 I'm integrating Everyplay with my Cocos2d Game.My game only support Landscape orientation. Everything goes well on iPad. But When i test on iPhone(iOS6),it throws exception as following when I call "[[Everyplay sharedInstance] showEveryplay]": reason: 'Supported orientations has no common orientation with the application, and shouldAutorotate is returning YES' I know orientation mechanism changed in iOS6.So i add this method: -(BOOL)shouldAutorotate{ return YES; } -(NSUInteger

arabic text getting stored as “???”

给你一囗甜甜゛ 提交于 2019-12-20 02:17:16
问题 What I am trying to do is save the arabic text in My SQL. My SQL Table has collation as utf8_general_ci I have textfield in iPhone app and I am saving data using PHP. PHP Code looks like below. $con = mysql_connect(localhost, $username, $password); @mysql_select_db($database) or die("Unable to select database"); $propType = $_POST['propType']; $price = $_POST['price']; $type = $_POST['type']; $zone = $_POST['zone']; $location = $_POST['location']; $no_floor = $_POST['no_floor']; $no_apt = $

Core data not saving my data

99封情书 提交于 2019-12-20 02:14:24
问题 I'm using core data to save some integer (rate) and then I call save in the context: HeartRateBeat * beat = [HeartRateBeat heartRateWithHeartRate:rate ofRecordTitle:self.recordTitle inManagedObjectContext:document.managedObjectContext]; NSError * error; [document.managedObjectContext save:&error]; Inside that convenient method I create the object using NSEntityDescription like this: heartRateBeat = [NSEntityDescription insertNewObjectForEntityForName:@"HeartRateBeat" inManagedObjectContext

How to disable take photo on file input iOS 6

可紊 提交于 2019-12-19 21:54:08
问题 Is there an attribute for the input type file to turn off the native iOS 6 handling? I'd like to disabled 'Take A Photo' functionality but leave 'Choose Image'. 回答1: I've updated my answer to reflect what you are looking for. Sorry for the confusion. This articles deals with what I understand you are trying to accomplish: http://www.mobilexweb.com/blog/iphone-5-ios-6-html5-developers Scroll down to the line that says: We can also request multiple files using the HTML5 new boolean attribute.

sending CFTypeRef (aka const void*) to parameter of type 'void *' discards qualifiers

跟風遠走 提交于 2019-12-19 21:48:22
问题 A warning is raised in the following code. ARC is used. if ( aAnim ) { [UIView beginAnimations:nil context:CFBridgingRetain([NSNumber numberWithInt:aOff])]; [UIView setAnimationCurve:UIViewAnimationCurveEaseOut]; [UIView setAnimationDuration:0.5]; [UIView setAnimationDelegate:self]; [UIView setAnimationDidStopSelector:@selector(postSpin:finished:toCCWCellOffset:)]; } 回答1: CFBridgingRetain returns a CFTypeRef which is declared as const void * . The context parameter of [UIView beginAnimations

SLComposeViewController with screenshot but not image attachment

二次信任 提交于 2019-12-19 19:46:31
问题 I notice that Mobile Safari's Twitter and Facebook share adds a screenshot of the current page without actually sharing it, eg: Im trying to duplicate this via SLComposeViewController, however calling the addImage: actually adds the UIImage to the tweet/facebook album (as expected). Is there a way to just display the screenshot of the page without adding the image ? Edit: Looks like SLComposeViewController conforms to UIAppearanceContainer however the UI_APPEARANCE_SELECTOR is not documented.

presentViewController black background instead of transparent

怎甘沉沦 提交于 2019-12-19 16:34:25
问题 I have a view that I wish to present to the user in the standard way (sliding up from the bottom of the screen). About half this view is a transparent background and the bottom half has some input fields (imagine the way the keyboard pops up). When I call [self presentViewController] on the rootViewController, it slides the view up, but then about half a second later, where the view used to be transparent it is replaced with black instead. This happens with both presentViewController and

How to change minimum or maximum value by CIFilter in Core image?

感情迁移 提交于 2019-12-19 11:49:22
问题 I'm drawing several grayscale images in iOS. The values of grayscale image have minimum and maximum i.e. for 8 bit values in range [41,244]. I want to change minimum value or maximum value. I want to know how to set a filter in this list to change minimum value and how to set a filter in this list to change maximum value? Maybe the follow of drawing will be good to see : [1. Read raw grayscale data] -> [2. Create CGImageRef] -> [3. Load ref in GPU] and by now, in iOS 6 can apply filter in GPU