xcode6

iOS8 issue when trying to push multiple UIViewControllers in NavigationController

限于喜欢 提交于 2019-12-08 15:23:28
I have 6 UIViewControllers connected with push segues with identifiers and a functionality in my app to 'jump' to the desired UIViewController using this method for stacking ViewControllers: - (void) JumpTo6 { UINavigationController *nav = self.navigationController; UIViewController *a =[self.storyboard instantiateViewControllerWithIdentifier:@"2"]; [nav pushViewController:a animated:NO]; UIViewController *b =[self.storyboard instantiateViewControllerWithIdentifier:@"3"]; [nav pushViewController:b animated:NO]; UIViewController *c =[self.storyboard instantiateViewControllerWithIdentifier:@"4"]

cocoa touch framework assets not visible in App Project

廉价感情. 提交于 2019-12-08 14:39:46
问题 I've been trying since morning creating a cocoa touch farmework to put my self containing widget inside it, and to allow any app I'm working on to use it in the future. I've managed to build the project and export .framework file, but all the assets are not showing now. all my Images are inside assets catalog. And they seem to be exported since the .framework file has (assets.car) file inside it. I'm currently accessing them using UIImage* icon = [UIImage imageNamed:@"iconName"]; But it

Swift: How do I create a predicate with an Int value?

南楼画角 提交于 2019-12-08 14:34:26
问题 I am getting an EXC-BAD-ACCESS error on this statement: var thisPredicate = NSPredicate(format: "(sectionNumber == %@"), thisSection) thisSection has an Int value of 1 and displays the value 1 when I hover over it. But in the debug area I see this: thisPredicate = (_ContiguousArrayStorage ...) Another predicate using a String shows as ObjectiveC.NSObject Why is this happening? 回答1: When your data is safe or sanitized, you might try String Interpolation Swift Standard Library Reference. That

Xcode 6 Beta iOS 8 Simulator can't access internet

╄→гoц情女王★ 提交于 2019-12-08 14:32:11
问题 Just installed XCode 6 Beta to test my app. The iOS 8 Simulator runs and my app successfully installs but the simulator can't access the internet. I try using safari or maps and there is no network connection. If I run the iOS 7 simulator from XCode 6, it connects to the internet perfectly. I've tried using the steps in this thread but it didn't change anything. (The steps were more if your app doesn't install but I tried anyway.) I don't have a firewall or little snitch blocking the

Swift Core Data - Group doesn't Work

坚强是说给别人听的谎言 提交于 2019-12-08 12:15:12
问题 I am working on a simple iOS Swift app and can't find any solution for a small problem with core data. I have to group some data which i fetch out of core data, but it doesn't work. This is my fetchRequest: <NSFetchRequest: 0x7f82fbe105e0> (entity: Sets; predicate: ((null)); sortDescriptors: (( "(sort, ascending, compare:)" )); type: NSDictionaryResultType; includesPendingChanges: NO; propertiesToFetch: (( name )); propertiesToGroupBy: (( name )); ) I have sort and added properties to group

Application crashes with - dyld: Symbol not found: _OBJC_CLASS_$_UITraitCollection

走远了吗. 提交于 2019-12-08 12:10:55
问题 dyld: Symbol not found: _OBJC_CLASS_$_UITraitCollection The only place in the code I have reference to the UITraitCollection is: func loadImages(imageName: NSString) { var image: UIImage images = NSMutableArray(capacity: 7) for i in 0..7 { image = UIImage(named:"\(imageName)\(i).png", inBundle:nil, compatibleWithTraitCollection:nil) if (image != nil) { images.addObject(image) } } } 回答1: UITraitCollection is only part of the Foundation framework starting with ios8. What this error is saying is

Swift - How to get last insert id in Core Data, store it in NSUserDefault and predicate

隐身守侯 提交于 2019-12-08 12:04:04
问题 I already create a new entity and save it. Then I want to grab last insert id from first entity then save it into second entity as a reference id. let appDel: AppDelegate = (UIApplication.sharedApplication().delegate as AppDelegate) let userContext: NSManagedObjectContext = appDel.managedObjectContext! let userEn = NSEntityDescription.entityForName("UserEntity", inManagedObjectContext: userContext) var newUser = Users(entity: userEn!, insertIntoManagedObjectContext: userContext) newUser.uname

Default tab bar item colors using swift Xcode 6

断了今生、忘了曾经 提交于 2019-12-08 11:56:43
问题 Environment: - Xcode 6 beta 4 - Swift language - iOS Tabbed Application (default xCode project) How can I change the default grey color of the tabs to something else? (Preferably globally) As far as my research goes I need to somehow change the image rendering mode for each tab to Original rendering mode however I don't know how 回答1: Each (default) tab bar item consists of text and icon. It is pretty easy to change the text colors globally by specifying the appearance: // you can add this

when updating label text a few images reset to their storyboard init size

南楼画角 提交于 2019-12-08 09:46:08
问题 I'm working on a game with score ( UILabel ) and a few moving UIImage s. From the day I installed XCode 6, every time I update the score all the images in the view go back to their first frame (the frame from the storyboard). I tried to update the score like this: label.text = @"4"; [label setText : @"4"]; but it still happens I think that if I will create this score label programmatically it might help, but I wanna know if some of you know about this bug and maybe you have some other

Delphi FireMonkey iOS App: Error while Deploying to iPhone Simulator 8.1

不羁的心 提交于 2019-12-08 09:31:22
问题 I am working on a simple iOS App using Delphi FireMonkey. I am using Delphi XE7 in Virtual Windows 7 OS and a Mac OS with XCode 6.1 I have done the following steps: -> Activated the iOS Simulator as my target platform in the Project Manager. -> Created and activated a Connection profile for the OS X platform and the Test Connection is success. -> Added an SDK for iPhone Simulator 8.1 on the SDK Manager. -> paserver version 6.0.2.17 is running both in Mac OS and Windows OS. XCode is running on