ios7

How to keep SKActions running through an SKTransition in Sprite Kit?

帅比萌擦擦* 提交于 2019-12-13 00:48:54
问题 I have tried the following code when trying to transition between scenes in my Sprite Kit project: - (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{ XYZGameScene *gameScene = [[XYZGameScene alloc] initWithSize:CGSizeMake(self.size.width, self.size.height)]; crossFade = [SKTransition fadeWithColor:[UIColor blackColor] duration:2]; [playButtonSprite runAction:changePlayButtonTextureOFF]; if(toGameAction){ [self.scene.view presentScene:gameScene transition:crossFade]; }else{} }

Post Request in Json format iOS

别来无恙 提交于 2019-12-13 00:47:30
问题 I am new in iOS i have to send post request in json format. like, {"user":{"email":"abc@gmail.com"}} My coding is like, NSMutableDictionary *postDict = [[NSMutableDictionary alloc]init]; [postDict setValue:@"test@gmail.com" forKey:@"email"]; // [postDict setValue:text_password.text forKey:@"password"]; NSData *jsonData = [NSJSONSerialization dataWithJSONObject:postDict options:0 error:nil]; NSString *stringData = [[NSString alloc] initWithData:jsonData encoding:NSUTF8StringEncoding]; I am

wrong IPA size in new iTunes connect?

二次信任 提交于 2019-12-13 00:42:38
问题 I just uploaded a new app for review on iTunes Connect ( new look ). The size of my ipa file is about 250MB. After doing all the necessary steps with XCODE ( validating, distributing ) I find back my build and can select it for review. However, the size of the IPA file on ITC is shown as 4.1MB. I did not received any error message or 'Invalid Binary' mail during or after the validating and distributing process. Is this a simple UI bug in iTunes Connect ( new version ) or is there more going

How to remove unwanted black area during navigation bar animation. Screen shots

可紊 提交于 2019-12-12 22:13:38
问题 I have a view controller, in which the navigation bar is transparent. My next view is a table view, in which the navigation bar is white. To stop an unwanted animation carrying over, I am setting the navigation bar to transparent in the 'viewDidDissapear' of the table view. Unfortunately this leaves me with the image below when I navigate back (its even worse when you navigate forward). Does anyone know how to get rid of the black area? -(void)viewWillDisappear:(BOOL)animated { [self

iOS Custom UITextField with outlet initialization

我是研究僧i 提交于 2019-12-12 22:02:00
问题 I need UITextField with little customization. I've created new custom class CustomTextField. In IB I created outlet for each of my custom UITextField . I run the code and customization was not working. To make check I put breakpoint on initialization procedure initWithFrame in the custom UITextField . The breakpoint was not hit. I suppose that additional init must be made in each View Controller, but I am not sure what exactly. As I created outlet I suppose that init will be made

Cannot set uilabel font in ios 7( not using custom font)

余生颓废 提交于 2019-12-12 21:40:28
问题 Background: font using: AppleSDGothicNeo-Light ios supporting: ios7+ Issue: I set the font for uilabel by: self.lblName.font = [UIFont fontWithName:@"AppleSDGothicNeo-Light" size:12.f]; What I expected: What I got in iOS7(iOS8 is alright): When I want to print out the debug description, it got: font-family: "AppleSDGothicNeo-Light"; font-weight: normal; font-style: normal; font-size: 12.00pt what happened? 回答1: i hope it will help you.. UIFont *myFont = [UIFont fontWithName:@"AppleSDGothicNeo

Why is my UITableView cut off in iOS 7?

杀马特。学长 韩版系。学妹 提交于 2019-12-12 21:26:25
问题 In iOS 6, my login tableview that consisted of two rows (Username and Password) was completely shown correctly. In iOS 7, the bottom row is cut off, and I don't know why or how to correct the issue. Nothing changed except for upgrading to Xcode 5 and running on the iOS 7 simulator. UPDATE: adding more images 回答1: try playing with navigationBar.translucent property in your view controller. in iOS 6 it is NO by default, but YES in iOS 7 . I had a similar issue and this fixed it for me. 回答2:

TabBarController: Orienting views in different orientations

拟墨画扇 提交于 2019-12-12 21:03:33
问题 I am having trouble preserving my current views orientation. In the below setup, I have been able to lock the first view controller to portrait and the second viewcontroller to landscape or portrait. However, when I add a second navigation controller/rootviewcontroller to the tab controller, all of the views throughout the project will go to both landscape and portrait. This happens regardless of if I implement the same code in the first navigation controller to the second nav controller or

Fat binaries in iOS

余生长醉 提交于 2019-12-12 20:42:52
问题 Is it possible yet to build 32bit and 64bit 'fat' binaries for iOS? My understanding was that this was coming down the line but I can't see an obvious way to do it in the latest update to Xcode? I want my application to run in 64bit mode on 5S and 32bit on 5 and below (obviously), I did read the docs: Applications can now target iOS 5.1.1 and later while building for 64-bit using the “Standard architecture (including 64-bit)” build setting. This produces an Archive for the App Store with a

UINavigationbar Prompt overlaps the screen content

两盒软妹~` 提交于 2019-12-12 20:32:59
问题 ran into a weird issue. If I set the prompt on the navigation controller, navbar overlaps the content of the screen. What is the proper way of dealing with this? -(id)initwithsomestuff:(stuff) { ... self.title = @"My Title"; self.navigationItem.prompt = "@Prompt"; ... } When this view controller is pushed on, it first appears, then it resizes it's navigation bar to show the prompt in it. But that has a nasty side effect of not resizing the screen content below and covers a good amount of