xcode5.1

Load different viewcontroller in Xcode5

巧了我就是萌 提交于 2019-12-13 05:06:48
问题 I am working over a simple application for iOS in Xcode 5.1.1. I am a newbie in Xcode and Objective-C, so I have a little problem. This is what I have: Idea of my application is very simple - when user launch application first time, he see Authorization form. When he enter his Login and Password and press Sign In, my application make request to server, and if everything is ok - login and password are correct - application save user login: NSUserDefaults *defaults = [NSUserDefaults

All Xcode Bots Tests Pass, but why does it fail integration with “No tests found”?

萝らか妹 提交于 2019-12-13 02:22:28
问题 I run xcode bots with 188 tests and they all pass, but it shows a failure on the bot web page: You can also see that running the bots again pass. The failures happen intermittently but it is not rare. The Summary tab shows that the failing integration has no results: Also, all the tests pass, seen here: I did find this in the build log: Mar 13 13:04:11 testowlmacmini.local xcsbuildd[97650] <Error>: [XCSBuildBundle.m:787 756b6310 +0ms] Got an error from the post timeseries data operation:

Photos app in ios 7.1 simulator not working

心不动则不痛 提交于 2019-12-12 15:35:52
问题 i clean installed os x Yosemite yesterday and installed xcode 6. but unfortunately my old project require ios 7.1 so i delete xcode 6 and installed xcode 5.1.1. everything seems to be working fine but when i click on Photos app in simulator, it stuck on white screen as screen shows first when lunching app. I tried to reset content & setting but no luck. then i uninstall xcode completely including ~/Library/Caches/com.apple.dt.Xcode, ~/Library/Developer, ~/Library/Application Support/iPhone

Keep getting linker errors on Xcode 5.1 despite reverting to 32bit architectures only

随声附和 提交于 2019-12-12 13:20:06
问题 since I updated to Xcode 5.1, which changes the standard architectures to also include arm64 , I keep getting the following error from the linker: 0 0x109157f93 __assert_rtn + 144 1 0x1091faed4 ld::passes::stubs::Pass::makeStub(ld::Atom const&, bool) + 0 2 0x1091fb5f7 ld::passes::stubs::Pass::process(ld::Internal&) + 497 3 0x1091fbc07 ld::passes::stubs::doPass(Options const&, ld::Internal&) + 111 4 0x109158b50 main + 772 5 0x7fff8568b5fd start + 1 A linker snapshot was created at: /tmp/MyApp

Touching a multiple plotsymbol in core plot and get the two touch plot symbol index

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-12 03:00:30
问题 I want to get the difference between two points touched simultaneously. But i am only getting one index into scatter plot by this method, -(void)scatterPlot:(CPTScatterPlot *)plot plotSymbolWasSelectedAtRecordIndex:(NSUInteger)idx withEvent:(CPTNativeEvent *)event; How to get two index by multitouch? 回答1: The built-in interaction methods only support one point at a time. You can get the coordinates of the touch points, convert them to the coordinate space of the plot area layer, and use the

How to Close NSPopover programmatically

僤鯓⒐⒋嵵緔 提交于 2019-12-11 17:47:22
问题 I want to know how to close NSPopover programmatically, not by touching outside, because I want to assign it to an action (such as KeyDown Enter Key or other shortcut) because I open my NSPopover with a shortcut, it would be more logical to close by pressing another command going to share my code: EdiciondeCuentasWC.h (NSWindowController) from where I call my NSPopover #import "EdicionDeCuentasWC.h" #import "CambiarTipoCuentaVC.h" @interface EdicionDeCuentasWC ()<NSPopoverDelegate>{

Xcode 5.1 - iOS 7.1 error

我怕爱的太早我们不能终老 提交于 2019-12-11 12:06:28
问题 I had successfully built an app with xcode 4.5 and iOS 6.1 SDK. But yesterday I updated Xcode to 5.1. And now when I try to build for releasing, it throws so many errors. These are the errors. types.h - User Defined Issues - Architecture not supported _types.h - User Defined Issues - Architecture not supported Semantic issue - Unknown type name '__int64_t', Unknown type name '__int32_t', Unknown type name '__uint64_t', Unknown type name '__uint32_t', Unknown type name '__darwin_natural_t'..

What is the Best Way To show UITextField with only a bottom border?

蹲街弑〆低调 提交于 2019-12-08 12:32:27
I would like to have UITextField appear only with a bottom border. See the designer's image below: UIBezierPath *path = [UIBezierPath bezierPath]; [path moveToPoint:CGPointMake(150.0, 350.0)]; [path addLineToPoint:CGPointMake(250.0, 209.0)]; CAShapeLayer *shapeLayer = [CAShapeLayer layer]; shapeLayer.path = [path CGPath]; shapeLayer.strokeColor = [[UIColor blueColor] CGColor]; shapeLayer.lineWidth = 3.0; shapeLayer.fillColor = [[UIColor clearColor] CGColor]; I have Tried This but not Getting Appropriate Results. Any Suggestions ? 来源: https://stackoverflow.com/questions/25976119/what-is-the

Core Plot and Xcode 5.1 - How to convert Core Plot to ARC?

三世轮回 提交于 2019-12-08 03:31:04
问题 I just installed Xcode 5.1 and found that it definitely requires projects to use ARC. I get error: garbage collection is no longer supported when trying to compile Core Plot (version 1.4). Out of curiosity I told Xcode to convert Core Plot to ARC. But it fails with ARC forbids Objective-C objects in struct in file CPTPlatformSpecificFunctions.m . I don't want to dive into Core Plot and break something by trying to fix this or similar errors. Is there a compiler setting I have overlooked? Or

how to edit a plist programmatically in xcode 5 iOS 7?

耗尽温柔 提交于 2019-12-07 18:52:11
问题 how can I edit or change a value string from: in this plist I need change or Set "NO" in Enabled Value from Item 2, I see a lot examples, but not working, or are deprecated, or don't use ARC, any idea or example code? please help guys EDIT#1: I try this (not work) NSString *path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject]; path = [path stringByAppendingPathComponent:@"List.plist"]; NSFileManager *fileManager = [NSFileManager defaultManager];