xcode4.2

Why is my xcode 4.2 log always empty?

自作多情 提交于 2019-12-01 14:45:45
in a method that is accessed three times I want to write something to the log. NSLog(@"%@", [response responseString]); But there is nothing in the log. The log windows is completely white. Normally when I start an application there is always some stuff that shows up in the log but now it is totally empty. How can I fix this? Perhaps a really silly thing, but in the top right-corner of the console you should see this: Check that the middle segment or right segment is selected. NSString *responseString = [response responseString]; NSLog(@"%@", responseString); set a breakpoint on the first line

Flash videos in WebView not working in sandboxed app

非 Y 不嫁゛ 提交于 2019-12-01 14:42:52
I'm having a problem with playing flash videos in my application. It's been working before, but ever since Apple has required every developer to enable entitlements and sandboxing, flash videos in the webview do not play. Everytime I disable sandboxing, it works, but if sandboxing is enabled, it doesn't. Below I've posted links images of the Sandboxing and Entitlements settings. Thanks. http://i.stack.imgur.com/LCpvJ.png http://i.stack.imgur.com/o6OVy.png figured out how to fix it... go to your entitlements and add: KEY: com.apple.security.temporary-exception.mach-lookup.global-name TYPE:Array

Why is my xcode 4.2 log always empty?

…衆ロ難τιáo~ 提交于 2019-12-01 13:07:32
问题 in a method that is accessed three times I want to write something to the log. NSLog(@"%@", [response responseString]); But there is nothing in the log. The log windows is completely white. Normally when I start an application there is always some stuff that shows up in the log but now it is totally empty. How can I fix this? 回答1: Perhaps a really silly thing, but in the top right-corner of the console you should see this: Check that the middle segment or right segment is selected. 回答2:

Flash videos in WebView not working in sandboxed app

时间秒杀一切 提交于 2019-12-01 12:14:54
问题 I'm having a problem with playing flash videos in my application. It's been working before, but ever since Apple has required every developer to enable entitlements and sandboxing, flash videos in the webview do not play. Everytime I disable sandboxing, it works, but if sandboxing is enabled, it doesn't. Below I've posted links images of the Sandboxing and Entitlements settings. Thanks. http://i.stack.imgur.com/LCpvJ.png http://i.stack.imgur.com/o6OVy.png 回答1: figured out how to fix it... go

JSON.h : File not found when trying to import the JSON framework

六月ゝ 毕业季﹏ 提交于 2019-12-01 11:33:57
问题 When i build i got that error: JSON.h : File not found Obvious assumptions make me think that the JSON.h file is not in the framework folder imported into my project, yes, it doesn't exist with that noun but there is a file named SBJson.h . I have followed this step by step tutorial around. 回答1: Remove the JSON folder from your project and then re-add it. When you re-add it, make sure the "Create groups for any added folders" radio button is checked. If the other "Create folder referenes..."

App built with Xcode 4.2 ios 5.0 crashing when installed on iphone with ios 4.3.5

落花浮王杯 提交于 2019-12-01 11:33:51
I have an app that will not build anymore on ios 4.x Last week it worked fine, and now I can confirm 2 people with older ios' are unable to launch the app on Test Flight. 1 person (ios 4.3.x) is unable to build the app anymore in Xcode and the debugger output is as follows warning: Unable to read symbols from "dyld" (prefix __dyld_) (not yet mapped into memory). warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3 (8F190)/Symbols/System/Library/Frameworks/UIKit.framework/UIKit (file not found). warning: Unable to read symbols from "UIKit" (not yet mapped

Clearing NSUserDefaults after specified time period iPhone

≡放荡痞女 提交于 2019-12-01 09:47:39
I have created NSUserDefaults object, it will be updated with the new value whenever an even will occur. What I want is (as per my application requirement) that object should be cleared every 7 days. Like if 1st time that NSUserDefaults are updated today so exact after 7 days, a method should work and clear the NSUserDefaults. So that, new values would be assigned from then on for the next 7 days. Is it possible in objective-c? What you can do is store an NSDate object. Then every time the application is launched (or more often) check if the time difference between then and now is 7 days.

App built with Xcode 4.2 ios 5.0 crashing when installed on iphone with ios 4.3.5

寵の児 提交于 2019-12-01 09:11:19
问题 I have an app that will not build anymore on ios 4.x Last week it worked fine, and now I can confirm 2 people with older ios' are unable to launch the app on Test Flight. 1 person (ios 4.3.x) is unable to build the app anymore in Xcode and the debugger output is as follows warning: Unable to read symbols from "dyld" (prefix __dyld_) (not yet mapped into memory). warning: Unable to read symbols for /Developer/Platforms/iPhoneOS.platform/DeviceSupport/4.3 (8F190)/Symbols/System/Library

Grey GPS arrow shown in statusbar although location based application killed using Fast App Switcher

て烟熏妆下的殇ゞ 提交于 2019-12-01 08:20:28
I am writing a location based application for iOS 5. The application is using the CLLocationManager to receive Location updates. When the application is started I am creating the LocationManager, calling [self.locationManager startUpdatingLocation]; and the grey location arrow appears in the statusbar. When the application enters background I am calling [self.locationManager stopUpdatingLocation]; [self.locationManager startMonitoringSignificantLocationChanges]; cause I just want to receive significant location changes while the app is in background. The grey location arrow is still shown. I

GLPaint Brush Effect with blur and bevel

瘦欲@ 提交于 2019-12-01 06:34:17
I am working on a drawing application based on GLPaint code. Do somebody know how to get an effect like this ? I have tried with different values for the width and the Height for the brush, but still it remains same . Do i need to consider glBlendFunc() ? or Is it achievable thorough changing the width and the heigh of the brush. Thanks in advance. The easiest way to achieve that type of effect is to reducing the alpha from 1.0 to 0.7. In PaintingView Change Brush Height and Width as shown in following image...And One more thing is that change brush image according to your requirements for