xcode

objective-c disable drag in UIButton

I want to disable UIButton dragging in Xcode, is there anyway to do that? any solution would help Thanks ...

If statement in Xcode to determine which HTML page is being loaded by a UIWebView

Hi guys, I have a UIWebView on my interface and I have added a UIToolbar with a next button and previous button. When I press the next button, I want the WebView to load a different HTML page. BUT I also want to run an if statement to determine which HTML page the WebView currently has in it. So For example. If the UIWebView has index...

How to conditionally use static library only when linked

I'm doing an iPhone plugin project where I build a static library, let's call it lib1.a, which I provide to other programmers. When they link lib1.a into their project, they may also link lib2.a, which they build themselves based on a header file I give them. This header only contains a "hook" function which instantiates an obj-c object...

xcode: convert iphone to ipad issue

I am trying to convert an iphone project to an ipad but having a build issue for the new ipad version. I was able to convert the iphone project to ipad 3.2 and run it. When I run it it shows up in the ipad simulator as an iphone app. (Which is fine) I then changed the simulator to iPad 4.1 with the new target of iPad When I do a bui...

Class initialization breaking application

I've recently created a new class for my iPhone application which will hold information read from a text file containing the street address and GPS points of points of interest. The issue though is that whenever I add code to initialize the class my application loads up and the instantly quits with no errors in the console. When I remov...

IPhone SDK File Will Not be Included

I have am trying to include a JSON parsing library into my app and I downloaded a JSON library from github, so I dragged the JSON directory into my Classes Folder in XCode and I can open up JSON.h fine and see all of its contents. But when I import it into my implementation file with this code: #import "JSON/JSON.h" I get a compile er...

How to sync animations with sound on iPad

I have a page on an iPad that is setup so there are a bunch of characters and background music. Tapping on a character will start an animation and the character will play along with the music. The problem is, the music and animations are getting out of sync and there's probably a better way. Here is how I'm doing it. • page loads • I ad...

xcode EGODatabase update

Hi I am trying to do a simple update to a sqlite database using EGODatabase and although the code runs the update does not occur? NSArray *params = [NSArray arrayWithObjects:@"TEST", nil]; EGODatabase *database = [EGODatabase databaseWithPath:[[[NSBundle mainBundle] resourcePath] stringByAppendingPathComponent:@"db_USBV1.sqlite3"]];...

fundamentals of linkers as they apply to Xcode

I am working with libraries for the first time. The libraries in question are large, and there are a lot of them. Even after reading all the relevant material I could find on SO, I keep running into linker errors. Sometimes I manage to resolve them, but in the end I don't really feel like I understand what is going on. Is there a goo...

I dont know how I can save project to ipa

Thank you I learned a lot from this site I have a question I finished the application is running webview But I remain one step keeping the program And send it to the iPhone to try it on two ipa I want to save formulas ipa Thank you ...

Can you test iphone apps with xcode using wifi?

I want to be able to test my app while walking around my house, wirelessly. Can you connect the iphone to xcode thru wifi? ...

Where can you download a preview of Xcode 4 from?

I can't find any reference to it from the Apple website. ...

how to find exact error location in Xcode?

I have developed an app that runs perfectly on OSX 10.6 but it gives some error on OSX 10.5. It basically accepts some information from user and stores it on HDD using file handeling. Now I get everything as expected but the file handeling part. i have applied if then else and using NSAlertpanel to check if file is successfully created o...

What to modify when my SVN server's IP address changes in Xcode?

I get the following error in Xcode: Error: 175002 (RA layer request failed) Description: OPTIONS of 'http://[email protected]/svn/MyProj/MyProj.xcodeproj': could not connect to server (http://192.168.0.107) I made two changes since the last time it worked: The local IP address of the computer it's connected to has changed (which...

objective-c preprocessor directives

how do i write the following in the preprocessor directive language? if (isfullversion and isproduction) else if (isliteversion) end if ...

change wallpaper via iphone app

Does apple allows me to change the wallpaper of the iphone from my application? ...

iPhone, where my sqlite db on my mac ?

I've added a function so that my database resides on the device, however, in the simulator I can't find it on my mac at all. It used to be in Machintosh HD before I used my function. + (NSString*)getDBPath { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [...

Objective-C, how do i convert a double to an int ?

I must be doing something really obviously wrong, but I can't see it. ...

read version from info.plist

I want to read the bundle version info from info.plist into my code, preferably as a string. How can I succeed? ...

iPhone, how can I store / load one value on a simple table view settings screen?

Heres my cellForRowAtIndexPath where I've loading a value for a row, instead of a value from a simple array and converting it to a row. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusabl...