xcode6

Self Location Manager Delegate error in Xcode 6

夙愿已清 提交于 2019-12-24 17:00:02
问题 I'm using code from: http://www.veasoftware.com/tutorials/2014/6/17/xcode-5-tutorial-ios-7-simple-compass-app In Xcode 6 I get the error below. The app still runs, but this error is really annoying me. self.locationManager.delegate = self; //Assigning to 'id<CLLocationManagerDelegate>' from incompatible type 'ViewController *const __strong' 回答1: I guess you forgot to comply with the Core Location Delegate protocol by adding <CLLocationManagerDelegate> after @interface in the header file. 回答2:

Swift core data does not store the data permanently

倾然丶 夕夏残阳落幕 提交于 2019-12-24 16:54:29
问题 I also have the same problem with (This guy) but he doesn't tell the solution. Therefore, I have to ask you how I can do ? I have an Entity called Rabbits, Attributes are birth_date,breed_date,cage_no,dam_earnum,nes_date,pal_date,rabbit_id,sire_earnum My core data store : var appDel:AppDelegate = (UIApplication.sharedApplication().delegate as! AppDelegate) var context:NSManagedObjectContext = appDel.managedObjectContext! var request = NSFetchRequest(entityName: "Rabbits") var result:NSArray =

Can a build be marked as failed from an Xcode bot trigger script?

橙三吉。 提交于 2019-12-24 15:26:36
问题 I'm using a post-build trigger script in an Xcode bot to run some tests through Appium. I've gotten it to run, but I can't find any way to mark the build as failed if the tests fail. Is this possible, or should I just email the results for now and wait to move to a different CI system? Documentation for these bot trigger scripts is sketchy at best. 来源: https://stackoverflow.com/questions/28614615/can-a-build-be-marked-as-failed-from-an-xcode-bot-trigger-script

Linking View Controllers through button

北慕城南 提交于 2019-12-24 15:12:32
问题 I'm a beginner at all of this...Having said that I've come across a point in my app where I've stalled and don't know what to do or fix next. So any answers would be appreciated! So in my Home View Controller, I have four buttons with four different categories. Each of these categories has its own question list, but they have a common "General Question" list. The general question list has its own view controller. When you click on any of the four buttons, it brings you to the General Question

Push notifications are not working in updated version from ios7 to ios8.1

試著忘記壹切 提交于 2019-12-24 14:27:44
问题 I updated my device from ios7 to ios8.1.Push notifications are not working in updated version. I did same process for push notifications which is done in ios7. The code is also updated #ifdef __IPHONE_8_0 //Right, that is the point UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:(UIUserNotificationTypeBadge |UIUserNotificationTypeSound |UIUserNotificationTypeAlert) categories:nil]; [[UIApplication sharedApplication] registerUserNotificationSettings:settings

issue while changing Navigation Root View Controller

巧了我就是萌 提交于 2019-12-24 13:15:59
问题 I am making an app. In which First User have to sign In then He allowed to use the app. After successful login I want the user to directly switch to my HomeViewController. Here is my code tho change navigation root view but it is not working TermsConditionsController *firstViewController = [[TermsConditionsController alloc]init]; FirstPage *secondViewController = [[FirstPage alloc]init]; firstViewController.navigationController.viewControllers = [NSArray arrayWithObject: secondViewController]

create custom code completion macro in xcode 6.1

我怕爱的太早我们不能终老 提交于 2019-12-24 12:01:01
问题 How do i create a custom code completion macro in xcode 6.1 answer to How to create custom "Text Macros" in Xcode? does not seems to work as "Contents/PlugIns/TextMacros.xctxtmacro/Contents/Resources" does not exist anymore. 回答1: I have just been searching for this too, and I found the solution. Select the snippet that you want to make the macro with. Drag the selected text to the Snippets Draw. Inside the edit box, add the 'short-cut' that you want to use in the "Completion Shortcut" edit

Simulator and Storyboard Preview Difference

懵懂的女人 提交于 2019-12-24 08:45:07
问题 Currently, I'm using Xcode 6 Beta 6 for this thread. I have this single view application for iOS 8.0 and iPhone devices only. That single view have the value Inferred under the Attribute Inspector > Simulated Metrics . At first I didn't try to apply the Add Missing Constraints since I'm trying to layout the view to support a single layout both for 3.5" and 4" display. After running the current view - WYSIWYG on the simulator. That's fine and correct. When I tried to apply Add Missing

UIWebView breaking constraint when playing a video in fullscreen (Xcode 6)

我是研究僧i 提交于 2019-12-24 07:08:09
问题 I'm updating an iOS app for an YouTube channel. In the previous version (iOS 7 using Xcode 5), I used to embed youtube iFrame in a UIWebView and everything would work just fine. However, in iOS 8 using Xcode 6, every time I play a Youtube video and it goes full screen, my UIWebView constraints break and UIWebView gets relocated in my Controller (usually goes 10 points up in the screen). I've tried to change the constraints but it seems that doesn't matter what constraint I set up, it will

How to make multiple color tab bar in swift 3

百般思念 提交于 2019-12-24 06:26:30
问题 I've been trying to find the solution to this for the last week, and I have had no luck after trying every possible solution I could find or think of. Every solution I found and have attempted has not worked. I have 4 UITabBarItem's in a UITabBar placed within UITabBarController. I want to put individual background color (OR image) of the UITabBarItem. Screen shot is attached I am using Swift, and iOS SDK 9.3 in Xcode 8.0. If you can only answer in Objective-C that is fine too, any answer