SQLite Exception: SQLite Busy
Can anyone provide any input on this error. I am trying to insert into table using Objective C. While I am doing this, I am getting an error SQLite Busy. Why this is happening? ...
Can anyone provide any input on this error. I am trying to insert into table using Objective C. While I am doing this, I am getting an error SQLite Busy. Why this is happening? ...
Hello there! I'm building an iPhone app, that basically just displays information from an rss feed, and drags in some extra info from a related web site. I'm considering to put in some reporting code, eg the code provided by PinchMedia. I do have some issues with that, because I'll be monitoring users without consent. So, I was wondering...
Hi There, How can one pad a string to left in objective c. E.g if if i have an integer value of 6 I want it to be displayed as 06. I use stringByPaddingToLength but it pads it to the right like 60. Your help is much appreciated. Tony ...
Warning: This is my first iPhone Application so there's a lot of cargo cult programming going on here. I've googled, searched stackoverflow, read books, and changed code over and over in an attempt to fix this and I can't. I'm using the PageScrollView class found in "iPhone SDK Application Development" by Jonathan Zdziarski. It is a cl...
I have multi-line non-HTML text (with newlines). Need to output it inside ScrollView or just UIView. I can't output it as UITextView: can't find how to resize UITextView to the size of text and/or disable scroll in it. Should I output text to Label? Or there's something more proper for that? Thanks. ...
Is there a way for my iPhone app to add media (mp3s) not in its iPod library to iTunes once the user plugs/syncs to a desktop such that the media will get sync'd back into the iPhone's iPod library? I know the question is rather general, but if it is indeed possible, can anyone nudge me in the right direction? ...
I would like to use a UIWebView object to run custom javascript methods against a local web page. I can do that, but I would like to do it in the background, I mean, while I'm showing a navigation controller or any other content, load webpages and call javascript methods on them. How would do that? ...
Hi I want to change the border color of a UIPickerView. I do not see a tint property for the UIPickerView. Is there any way this could be done? Or a workaround? Thanks. ...
Hi, The following piece of code is giving me a compiler error: Invalid value in assignment, while changing the origin. CGPoint switchOrigin = CGPointMake(currentOrigin.x, currentOrigin.y + kTweenMargin); UISwitch *choiceSwitch = [UISwitch alloc]; **choiceSwitch.frame.origin = switchOrigin;** But when I change it to the following it ...
I have two classes, ClassA that will instantiate ClassB and pass off a method as a delegate. ClassB will eventually invoke ClassA's delegate. Do I need to add a retain on ClassA when ClassB stores it? I'm following the "Implementing a Delegate for a Custom Class" from the "Cocoa Fundamentals Guide: Communicating with Objects" but the sa...
I think the 3.0 update is coming out in July 09, that is about 30 days away. Coming from a C# background, I am learning objective C and my way around a mac. Should I start learning with the 2.2 or 3.0? ...
Hi All, In my app i am playing a video using the following code. NSURL *myURL = [[NSURL alloc] initWithString:downloadURL]; mMoviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:myURL]; if (mMoviePlayer) { [self initMoviePlayer]; [mMoviePlayer play]; } This code is working fine in simulator, but when i test ...
For a little iPhone application I am making, I want to sort a NSMutableArray. I found 2 ways of doing this, but they both result in the same thing. Sorting the array will cause some objects to 'overwrite' eachother. First off, here is my code: AppDelegate.h NSMutableArray* highScores; Somewhere down that AppDelegate.h, I also make ...
In Cocoa, there is a method (lineBreakBeforeIndex:withinRange:) on NSAttributedString to find appropriate line breaks in a piece of text. Since NSAttributedString does not exist on the iPhone, does anyone have any suggestions for similar functionality? Edit: Realized that I'm really looking for a word-wrap algorithm. For example, I wan...
I have been using a class to play sounds using AVAudioPlayer. Since I want to release these sounds right after they are played, I added a delegate. That causes a "_NSAutoreleaseNoPool(): Object 0x55e060 of class NSCFString autoreleased with no pool in place - just leaking" error right after the sound completes playing, but before my -a...
I'm getting a consistent crash when I create a simple app that uses a navigation controller. Basically choosing an item in the first table successfully creates & pushes the sub viewcontroller, and the back button works just fine. But when I try to choose the item again I get a strange crash in GDB. I get no errors, simply the debugger...
I'm writing an application that needs to hold around forty 44 kb JPEGs in memory at once. I've heard that applications can use around 22 megabytes before triggering a low memory warning, so I'm pretty sure it should be able to do this. However, once I pass around a megabyte loaded, these messages start popping up in the console: Mon Ju...
I am used to Visual studio, I have class library projects that I reference in my web sites or windows applications. Using class libraries allows me to create common functionalities, utilities once and use them over and over again. How do I do this with Xcode and iPhone App development? I am looking for some details on how to create the...
I have an app where I ask for the users birthday with a UIDatePicker then store it in standard user defaults. When the app is opened again I get the date again and then want to set the UIDatePicker to that date but it's crashing and not accepting the date. It's being stored in the format "June 8, 2009." How do I need to do this? This is...
As titled. I need a way to display the arrow buttom on UINavigationbar without actually pushing a controller. The reason why I can't push a controller is because I need to keep the keyboard displayed while transitioning. So to clarify: I start with a modal view controller (where there's nothing on the top left bar) like this - Then ...