xcode4

Navigating a Pdf using UIWebview not working in IOS 5

血红的双手。 提交于 2019-12-20 07:14:58
问题 I have recently upgraded to Xcode 4 and I've found that an app which has worked perfectly well for over a year is now not working under Ios 5. The app navigates a Pdf in UIWebview and uses the following code to move to any page within the Pdf. [self.pdfNavigateController.webView stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"window.scrollTo(0, %d);", self.pdfNavigateController.scrollPosition]]; When I use any simulator from 4.2 down the code works perfectly but under the

Xcode 4.4 & 4.5 freezing on project close

百般思念 提交于 2019-12-20 04:15:39
问题 Ever since upgrading to Xcode 4.4 and again upgrading to 4.5 (running on Lion), Xcode appears to freeze for about 3-5 minutes every time I close my app project or quit. During this time, activity monitor shows that the CPU is pegged at 95%, although little disk activity is occurring. I have tried uninstalling and re-installing Xcode and this didn't make a difference. Anyone else experiencing this? Any suggestions what I could do? Thanks in advance! 回答1: This issue is reported: https:/

Set Button selector (on click event) at runtime ? (Cocoa : Mac Project)

旧时模样 提交于 2019-12-20 04:11:02
问题 Any idea how to set button selector at runtime (on click event) for mac (Not IOS) I have a view controller with a button declared as outlet : #import <Cocoa/Cocoa.h> @interface MyView : NSView @property (assign) IBOutlet NSButton *MyBtn; i can access that buton with something like this : MyView * v; . . . [v MyBtn] i didn't find "addTarget" choice like on cocoa touch. The only choice is "setTarget(id)" I'm using Xcode 4.4.1 for osx mountain lion any suggestion would be appreciated. thanks 回答1

XCode 4 Data Model Versioning bug?

别说谁变了你拦得住时间么 提交于 2019-12-20 03:21:25
问题 Installed Xcode 4 and it all seems fine... except, when I try to add versioning to a Core Data model. In the instructions it says I should select the data model in the navigator and then "Choose Editor > Convert to Versioned Model." Well, the "Editor" menu does not have an item "Convert to Versioned Model"!!! Skipping this step crashes XCode 4. Also, I can't believe that there is no support for XCode 4 now that it is a pay product! Any ideas? 回答1: There are currently several issues with the

How to authenticate to Active Directory using iOS app

不想你离开。 提交于 2019-12-20 03:05:17
问题 I am trying to create and iOS app that takes a users credentials and verifies it with the AD server. Is there some built in library in xCode to do that, or is it third party? Any advice on direction to look would be greatly appreciated. Thanks Zach 回答1: Ok, so this was the PHP i used to make the connection to the ldap server. i am not 100% sure what is happening here, i got this code from IT Coordinator at my company. I understand all the binding and searching parts, but i dont get the the

How to use an xcode game on unity3d

风流意气都作罢 提交于 2019-12-20 02:50:15
问题 I have a game built on xcode using objective c. this game needs to be integrated with another game developed in unity3d as a part of it. how can i do this? what plugins are available to achieve this?? The thing is that.. i have a unity3d game and i have few other games inside the main game(games inside one game). these small games are already built on xcode.. now i have to use these games inside the main unity game.. something like if i chose to play one of the games it has to load that

Implementing Facebook Connect for iPhone using xcode 4

与世无争的帅哥 提交于 2019-12-20 02:36:14
问题 I'm having trouble getting Facebook Connect working. I (attempt) to follow the instructions located at http://www.mobisoftinfotech.com/blog/iphone/iphone-fbconnect-facebook-connect-tutorial/ but it seems to be for earlier versions of xcode. Here are the steps I'm taking. Create a new View Based App Download the SDK from their link Copy the FBxxxx.h files from the FBConnect folder inside of the src folder into my projects directory Create a new group named FBConnect under my project in xcode

xCode 4 “File not Found” when creating .ipa with core-plot library

倖福魔咒の 提交于 2019-12-20 02:12:57
问题 I have my app ready to ship, and I can not create the .ipa I need to do so. I have reproduced my problem in a very small example. 1) Create a new project (I used a Nav Bar application). 2) Build for Archive 3) Share. .ipa creates at specified location. 4) download / install core-plot ( http://code.google.com/p/core-plot/downloads/detail?name=CorePlotInstaller_0.2.2.zip&can=2&q= ) 5) Use method 2 for adding library 5a) Copy the CorePlotSDK directory to ~/Library/SDKs/ 5b) Add to your project's

Xcode 4 and Allegro 5.1 - Linker can't find Framework

泄露秘密 提交于 2019-12-19 11:36:13
问题 I know there are several other questions here regarding the Linker and Xcode 4, but they don't really relate to my problem. I've built Allegro 5.1 and it took me a while because of FreeType, but eventually it worked. Now I've written a little Space Invader game using Allegro. But somehow the linker can't find the framework. What I've done so far: The Frameworks are located at /Library/Frameworks/ and they have the same structure like all the other frameworks in that place I've added the

Xcode 4 and Allegro 5.1 - Linker can't find Framework

我与影子孤独终老i 提交于 2019-12-19 11:36:05
问题 I know there are several other questions here regarding the Linker and Xcode 4, but they don't really relate to my problem. I've built Allegro 5.1 and it took me a while because of FreeType, but eventually it worked. Now I've written a little Space Invader game using Allegro. But somehow the linker can't find the framework. What I've done so far: The Frameworks are located at /Library/Frameworks/ and they have the same structure like all the other frameworks in that place I've added the