xcode

sqlite3 Database not opening after too many writes

This looks like a memory or caching problem, but I don't know how to really debug how it's happing. I'm using Objective-C in X-code for this program. This is how I'm opening the database: -(BOOL) open { if (sqlite3_open_v2([[documentDirectory stringByAppendingPathComponent:[surveyName stringByAppendingPathExtensions:@"sqlite"]] UT...

how to zoom in view when user taps the view

i want to zoom in the view if the user holds finger on the image displaying on the view... as like we are now seeing the zooming in the mail composer when we hold the finger on the screen it gets zooming .... i want to do it this way...i hav a thumbnail images on the view and when user taps and holds on this it should zoom in normall...

malloc error and simulator crash

I constantly get malloc error : double freed.... The echoTime function is being called by a button. When i press the button again before the timer ends it gives me the malloc error. When i press the button after the timer finished to start it again, the simulator hangs. Does anyone know what is wrong with the following piece of code: -(...

xcode 3.2.4 simulator issue with in-app messaging

Just upgraded to xcode 3.2.4 and am having some issues with the simulator. Prior to the xcode upgrade I was testing my app in the simulator for using in-app mail and in-app messaging. I would switch between the different OS (3.1 and 4 - I believe) and check to make sure that the in-app messaging functions were disable on a device prior t...

how to present the HTML output to the view

i hav an html file which displays table view ,how to load this on the ipad view .. and i want to enter the values to the fields of table view in html o/p.... any ideas .. Thanks in advance... ...

iPhone 3G with iOS 4.1 reboots while debugging

I'm using Xcode 3.2.4. Has anyone ever experienced this? Here's the console message that I had gathered: 10/22/10 10:53:58 PM Xcode[70765] _NotificationSocketReadCallback (thread 0x1170b0000): Unexpected connection closure... 10/22/10 10:53:58 PM Xcode[70765] Got faceplant notification 10/22/10 10:53:58 PM Xcode[70...

iPhone UIWebView - Can auto complete be turned off on a input text field?

Hi, I've searched high & low for an answer on this and I can't seem to find an answer or anybody else having the same issue. Hope some one can assist? I have a web page for signup which I'm viewing in an iPhone UIWebView. A user is asking if we can stop capitalization on the first letter of the email address being entered. I thought...

Xcode - HitTesting returns 3 times

Hey all! I have a UIView subclass where hitTest: withEvent: is overridden. Every time a hit test registers, the view logs its tag. Ex: Click Console: You Touched View: 3 You Touched View: 3 You Touched View: 3 My question: Why does it do it three times? I need it to trigger something other than an NSLog and I'm afraid that it will t...

Detecting JavaScript errors in a UIWebView

I'm running into a very annoying issue developing javascript for a UIWebView in an iPhone application. If there is an error in the javascript, it silently fails and halts execution of the function it was running. And some errors do not happen in a desktop browser, so all appears fine. I then run it on an iPhone and get a massive failu...

XCode 3.2.4 Project - no "other linker flags" in build settings visible

Hello, I am recently trying to connect my cocos2d game with open feint, but I can't accomplish it as there seem to be some settings missing in my build settings of any project that I create. For example, I have to check "Call c++ Default ctors/Dtors in objective c", but there isn't such an option in my build settings. What's wrong wi...

How can I continue to receive console information sent via NSLog() after I push an app into the background?

When debugging crashes and errors, the NSLog() function is incredibly useful, even vital. Unfortunately, some errors can provoked by pushing an app to the background, and that same act 'cuts' the ability to receive NSLog info, which makes debugging crashes related to moving an app into the background very difficult. How can I get NSLog...

Application loses focus hide window

Ive been attempting to hide my applications main window when the application loses focus. Upon testing - (void)applicationDidResignActive:(NSNotification *)aNotification { [window orderOut:self]; _isShown = NO; } however this only seems to work once, after I bring my window back with [window makeKeyAndOrderFront:self]; [window...

I'm getting Failed with exit code 1 error in xcode

This is my first ever attempt at a Objective-c cocoa program, so I have no clue why it is giving me that error. I really don't understand the Build Result page either. myClass.h #import <Cocoa/Cocoa.h> @interface myClass : NSObject { int a; int b; } -(void) setvara:(int)x; -(void) setvarb:(int)y; -(int) add; @end myClass....

Setting Xcode breakpoint by code? (like pause() function)

I'm finding a way pausing program execution by code on Xcode As an example, I can stop execution with abort() C function. This pops Xcode debugger up. However, this exits program completely, so I'm finding a way to pause execution. So I can resume execution after checking execution states. This is required for handling light-weight err...

how to change the data in HTML table dynamically

i hav a html tags stored in string and i want to load the table with the attributes which i given dynamically through program... how to search the particular tags of the row and column of html and add the data to the attributes... any help appreciated... Thanks in advance...... ...

Change colour Navigation Bars, Tab Bars

how do you change the colour of the Navigation Bars, Tab Bars? Everytime I change it, I dont get the colour I want, It either gradient red, or gradient white/silver. But unable to do it, default gradient blue and grey both look good but try changing it any other colour and it looks terrible. Any tips? how to do gradient? ...

ShareKit Twitter Problem

Hey, I installed ShareKit for Twitter Support in my app. I registered all keys and urls and so on. But my problem is: In my app the user sees sentences. I want that the user can tweet this sentence. What method do I have to write. I've got: -(IBAction)tweetSentence { NSString* message = [[sprueche objectAtIndex: spruecheCount] string...

How do you create a static library in XCode and reference from 3rd party project?

I need to create a new target in project SDKTest.xcodeproj (say target is named lib_SDK.a) which contains all of the files in SDKTest.xcodeproj. I would then like to be able to import the lib_SDK.a file in my third party application called Client.xcodeproj and instanciate objects from that library, say an object called ScanMe.h I am cur...

recorrido de labels con arreglos

Hola tengo este problema declare esto IBOutlet UILabel *h1; IBOutlet UILabel *h2; IBOutlet UILabel *h3; IBOutlet UILabel *h4; y quiero llenar los label con numeros random asi: for (int i=1; i<=4; i++) { int numerosr = random()%12; h[i].text = [[NSString alloc]initWithFormat:@"%2.1f", numerosr]; } pero marca error en h[1] qu...

Number of lines from XCode project

Hello, I was wondering if there is anyway to count the total number of code lines from an XCode project. Thank you very much. ...