xcode5

how to set iOS 6/7 Deltas programmatically

主宰稳场 提交于 2019-12-04 02:01:04
I was developing a UISplitView app by using Xcode 4.6 when I left iOS6 I had design: Now I migrate to new Xcode5 and now I have this design: UINavigationBar overlaps completelly my UISearchBar... Leo Natan told me about using a iOS 6/7 Deltas but since I'm creating and adding my UISplitViewControllers programmatically, this may doesn't work I need to set the iOS 6/7 programmatically but I don't know how, any help I'll appreciate In iOS 7 there are now extended edges, and that's why navigation bar overlaping the searchbar. You can set self.edgesForExtendedLayout = UIRectEdgeNone; this is

viewWillAppear or viewDidAppear on NSWindowController

喜夏-厌秋 提交于 2019-12-04 01:40:09
I'm developing an app on MacOS X with Xcode5.1 and there's an action I want to trigger everytime the user opens or shows a NSWindowController all I found was windowDidLoad windowWillLoad awakeFromNib but nothing like in iOS: my methods... viewWillAppear viewDidAppear because even if I close an NSWindowController with [NSWindowController close]; if I open it again, it doesn't trigger my actions from windowDidLoad, windowDidAppear or awakeFromNib and now I need something like them, what's the equivalent, it must be something thanks in advance for the support Yes, there's no such convenient

Xcode5 and iOS7: trailing whitespaces in strings in Localizable.strings not working anymore

流过昼夜 提交于 2019-12-04 01:21:06
问题 In my Localizable.strings I define a string with trailing whitespaces like this: "%@ points " = "%@ Punkte "; This worked just fine in iOS6 but when runing on an iOS7 emulator, the string is trimmed and the trailing whitespaces are stripped off. Background: The string above is right-aligned in a label. I use the whitespaces as a padding since I dont want to subclass UILabel or write a bunch of code for just one label. I also tried using ASCII signs, but this also did not work. Any suggestions

iOS validation got Main_iPhone~iphone.storyboardc was not found

岁酱吖の 提交于 2019-12-04 00:24:51
I am trying to distribute my iOS app, and I got the following error message during xCode validation. "storyboard file 'Main_iPhone~iphone.storyboardc' was not found please ensure the specified file is included in the bundle with any required device modifiers appended to the filename". Need some advices... Remove the storyboard from the plist file if you use iPad <key>UIMainStoryboardFile</key> <string>Main</string> or if you use iPhone <key>UIMainStoryboardFile~ipad</key> <string>Main</string> I solved it by going to Target -> Build Phases -> Copy bundle resources, and add the Main_iPhone

Set auto increment in Core data iOS

我是研究僧i 提交于 2019-12-04 00:02:58
I am using Core Data, and want to set an auto_increment ID as one of the fields which will be unique. Is it possible to set auto_increment in iOS using core data? Can anyone help me with a small example of how to implement this? Below is the code through which I am inserting records in database. In the first field "id", i want to set it as auto_increment and not manually insert it. - (NSManagedObjectContext *)managedObjectContext { NSManagedObjectContext *context = nil; id delegate = [[UIApplication sharedApplication] delegate]; if ([delegate performSelector:@selector(managedObjectContext)]) {

Import a project in SVN from Xcode 5

故事扮演 提交于 2019-12-03 23:26:43
In xcode 4 organizer there was a button "import", in xcode5 how do I import a project in my svn repository? thanks Tommie C. The question is a bit confusing so please advise if it's not exactly what you need (otherwise, feel free to accept the answer). The confusion is that the Xcode 4 workflow you describe is used to allow developers to manage repositories (svn or git). If you want to take an Xcode project and add it to an existing svn repository I am attaching links to answers for that question. Adding Xcode Projects to SVN : Stack overflow response SVNBook High-level Concepts (Xcode 4

Why isn't my Asset Catalog returning R4 images?

谁说胖子不能爱 提交于 2019-12-03 22:34:24
I'm in the process of migrating my images to an Asset Catalog. My app needs to access the Launch Image after launch and display it on the screen. Easy enough, but I have different images for short and tall iPhones, and my iPhone 5 is loading the short launch image when I call [UIImage imageNamed:@"LaunchImage"] . Okay so maybe I can't do this with a Launch Image. I'll try putting some images in a normal Image Set instead. No dice. Using an iPhone 5, when I call [UIImage imageNamed:@"Derp"] OR when I set an image in Interface Builder, I get the 2x (retina) image instead of the R4 (retina 4-inch

Disable ARC with Xcode 5

佐手、 提交于 2019-12-03 22:02:42
问题 In versions of Xcode previous to 5, we can disable ARC in the project settings when we create the project. Now ARC is causing this problem for me. With an property list file, for the reading step, the compiler gives me an error: "implicit conversion of 'int' to 'id' is disallowed with ARC". I did not have this problem with the same code with Xcode 4. In my property list file, The keys are numbers and also in my viewController.m When I disallow ARC for the target, the warning persists. I don't

Xcode 5 minimum deployment target

╄→尐↘猪︶ㄣ 提交于 2019-12-03 20:00:40
Currently I am using Xcode 4.6. My app needs to support minimum iOS 4.3. I also want to expand upper limit support to iOS 7. Does Xcode 5, iOS SDK 7 still support iOS 4.3 ? And is iOS 4.3 simulator still available in Xcode 5 ? I tried to read up Xcode 5 Release Note but it does not mention anything. Thanks! If you want ios 4.3 simulator in your xcode 5 then follow this process 1> Go your application folder and right click on older xcode 2.> Show package content > contents > Developer > Platforms > iPhoneSimulator.platform >Developer > SDKs 3> Now copy this "iPhoneSimulator4.3.sdk" and follow

Xcode 5 - Launch Images not loading in iPad of iPhone app

£可爱£侵袭症+ 提交于 2019-12-03 19:20:41
I am developing an iPhone app on Xcode 5, it's having iOS 7 design but deployment target is iOS 6.0. My question is concerned to Splash Screen of the app. It is working fine in iPhone. Now when i tried to run app on my iPad, it is not loading the Splash Screen/Launch Images and It is showing blank screen instead of actual splash screen image, then from Rootviewcontroller it's working fine. I have set the Launch Images in Xcode "Images.xcassets" folder. Please suggest, what process should I follow to prepare Splash Screen on iPad properly ? What is the way to set Splash Screen of an iPhone app