ios6

UIViewController throwing unrecognized selector exception on prepareForSegue

老子叫甜甜 提交于 2020-01-02 02:46:26
问题 I'm trying to follow along the Stanford CS193p iOS programing lectures. One of the demo programs, called "Happiness" creates two UIViewControllers, a "PsychViewController" and a "HappinessViewController." It segues from the PsychViewController to the HappinessViewController using a target action method. The following code keeps throwing this exception: "-[UIViewController setHappiness:]: unrecognized selector sent to instance" Here's the offending code: -(void)prepareForSegue:

objc_release EXC_BAD_ACCESS

蹲街弑〆低调 提交于 2020-01-01 19:16:49
问题 Unable to determine what is going on with this error. I am uploading a file in multiple segments. I have threaded my api calls into 7 concurrent threads. Here is the assembly code that it stops at. Here is my printed stack trace Finally the Stack window I do not have any DISPATCH_QUEUE_PRIORITY_LOW except for a #define for dispatch_get_low() and I do not have any calls to dispatch_get_low() as a little background, I am developing my app from xcode 4.4 and recently installed GM Seed 4.5 to

iOS BLE - How to keep app active in the background?

怎甘沉沦 提交于 2020-01-01 19:15:18
问题 I am trying to find a clever way to keep a BLE app active in the background on iOS 6, without breaking any of Apple's rules. I plan to use the phone as a peripheral device and another BLE circuit as the central. My app will automatically be opened when a user arrives to a building using geofencing. After that the iPhone will connect to the first BLE central device it sees (the device will be in its white list). The user will then be able to move throughout the building switching to different

iOS SDK: MapKit MKPolyLine not showing

喜你入骨 提交于 2020-01-01 18:51:11
问题 I'm trying to display a polyline on my map, but the line doesn't show up. I tried a lot of things, but noting seems to work. I checked the Core Data functions, and it is returning data, so that is not the problem. It must me somewhere in the mappoint creation or the dwawing on the map (I guess). I'm sure it must be a little mistake somewhere, but I can't find it. My code: - (void)viewDidLoad { [super viewDidLoad]; AppDelegate *appDelegate = [[UIApplication sharedApplication] delegate];

App deployment not working correctly for iOS6 on windows

余生长醉 提交于 2020-01-01 18:24:13
问题 When I deploy app for first time everything works correctly , but after changing code and trying to deploy same app again with "run again" button, app starts without loading forge object so i can not use forge API . After little bit of testing I find out that forge will load only if I delete app from phone before deployment "run again" button. so basicly. I am using latest version v1.4.15 . So if you can fix it will save some time during development . One more , I can install and run app on

App deployment not working correctly for iOS6 on windows

喜夏-厌秋 提交于 2020-01-01 18:22:12
问题 When I deploy app for first time everything works correctly , but after changing code and trying to deploy same app again with "run again" button, app starts without loading forge object so i can not use forge API . After little bit of testing I find out that forge will load only if I delete app from phone before deployment "run again" button. so basicly. I am using latest version v1.4.15 . So if you can fix it will save some time during development . One more , I can install and run app on

Customized UIProgressView with rounded corner images

风格不统一 提交于 2020-01-01 18:17:47
问题 I am having difficulties customizing UIProgressView with two images. I have found plenty of helpful questions on the internet, but my problem is a little different. Maybe in a way that images I am using are rounded on not cornered rectangles; therefore, stretchableImageWithLeftCapWidth method doesn't seem to help in my case. When I stretch the images, there is some space because of rounded corners of the images, there is one question posted on this link 回答1: You will have to Implement Custom

Xcode 4.5.1 get stuck when archiving

懵懂的女人 提交于 2020-01-01 16:50:48
问题 I just upgraded my xcode to version 4.5.1. Everything worked fine before but now, when I Archive the project, xcode get stuck/hanging and never finishes the archiving. In the status on top, the text says: Compiling 10 of 10 source files... Nothing happens after that. It is just stuck. I can still compile and build the code (without archiving) and everything runs just fine in the simulator. I have reinstalled xcode. The issue still happens after that. Any suggestion will be appriciated. More

Xcode 4.5.1 get stuck when archiving

左心房为你撑大大i 提交于 2020-01-01 16:50:41
问题 I just upgraded my xcode to version 4.5.1. Everything worked fine before but now, when I Archive the project, xcode get stuck/hanging and never finishes the archiving. In the status on top, the text says: Compiling 10 of 10 source files... Nothing happens after that. It is just stuck. I can still compile and build the code (without archiving) and everything runs just fine in the simulator. I have reinstalled xcode. The issue still happens after that. Any suggestion will be appriciated. More

Custom map path line

偶尔善良 提交于 2020-01-01 15:35:03
问题 I'm having trouble with drawing a line on the map with a stroke. (inside color and outside color) I beleive i'm on the right path and have subclassed mkOverlayView to override the drawing (needs to fill with the road size) so inside drawMapRect... CGFloat lineWidth = MKRoadWidthAtZoomScale(zoomScale); MKMapRect clipRect = MKMapRectInset(mapRect, -lineWidth, -lineWidth); ... CGContextAddPath(context, path); CGContextSetStrokeColorWithColor(context, line.color.CGColor); CGContextSetLineJoin