How to determine if dispatch_queue_t is suspended in iOS?
Is there some way to know that a queue is suspended and i can resume it and vice-versa? Because otherwise app crashes. Or do i need to store this information in some var and check? ...
Is there some way to know that a queue is suspended and i can resume it and vice-versa? Because otherwise app crashes. Or do i need to store this information in some var and check? ...
Hey, I'm starting to play a bit with iPhone applications and I downloaded the MoveMe example from the apple web page. I managed to run the app, however I do not get the strings displayed. I noticed that the DisplayStrings.strings file, although it exists in the app folder, does not appear as one of the resources. I tried adding it as...
I have problems with download and upload blob data in my iPhone app using Sqlite. Everything seems to be ok if I insert the photos in the blob field with SQLite manager: I can read the image and manage it with my app. When I export the table to xml with the SQLite manager's feature, it creates a file that contains in the photo field a v...
Hi, I have a TabbarController with different ViewControllers. Some of these ViewControllers should autorotate and one ViewController should be presented only in PORTRAIT. I fill the Tabbar with the following procedure: ChartThemeViewController *chartViewController = [[ChartThemeViewController alloc] ...
This makes no sense to me. Maybe someone here can explain why this happens. I've got an NSMutableString that I alloc at the top of my iPhone app, then append to later in the process. It results in a SIGABRT, which doesn't add up to me. Here's the code: Header File (simplified): @interface MyAppDelegate : NSObject <UIApplicationDele...
Possible Duplicate: Technology to write iPhone, BlackBerry and Android phone at the same time? Is there any common language to develop a same application for iphone, blackberry, windows mobile and android? ...
I'm quite new to iphone programming. I would like some information with you. Here is the structure of my database: ID_song : auto-int (primary key) txt_song : text When we do delete some data from a table view, and when the data is deleted from the SQLite database, let's say I have only 3 songs in my database id_song:1 txt_song:Song_...
I have several UILabels in table cells, and I thought I could set them to be opaque and then setBackgroundColor:[UIColor groupTableViewBackgroundColor]] to make them have the table background. The grouped table background color in the UILabel isn't aligned with the table's background, though, so the lines are broken. Is there any way to ...
In 3.0, I could register for MPMoviePlayerContentPreloadDidFinishNotification and detect if the movie preloaded or failed, depending on whether there was an error object. Can anyone tell me the equivalent of the two cases for iOS4? [Update: Responding to the first comment here because the max comment length is too short.] If you succe...
I have an iPhone OS app who's ViewController overrides shouldAutorotateToInterfaceOrientation so that only the two landscape orientations are supported. Then, there is (in my primary/main NIB) a UIScrollView that's landscape. In my primary viewDidLoad, it appears that this UIScrollView is still 320x480. However, as I only load the ini...
I made an RSS reader that gets a feed from blogspot. The text from the story, title, etc. works fine. But the images posted inthe feed show up as links instead of an image. How can I display the images? ...
Having just upgraded to iOS 4.1 (Xcode 3.2.4) I am getting warnings when using the static analyser that I don't think I was previously getting when using 3.2.3 Now the project compiles just fine, is this something that has changed or do I have something set wrong? NB: I have the build results window set to "All Messages" EDIT: I th...
Hi there, been having this problem for a few days now and can't seem to find a solution for it. It's probably some very basic stuff but still can't come up with a solution. I have a bunch of labels nested inside table view cells with an edit navigation controller button that goes to another table view. This table view has text fields t...
I have an iPhone SDK application that has several views that appear and disappear as the user creates content. After using the application on a device for a while, I get the following crash: Program received signal: “EXC_BAD_ACCESS”. (gdb) backtrace #0 0x33369ebc in objc_msgSend () #1 0x320e5248 in -[UIScrollView(UIScrollViewInterna...
I would like to revamp an old question, concerning the development of apps on the iPod touch as a cheap replacement for the iPhone: http://stackoverflow.com/questions/1128245/ipod-touch-compared-to-iphone-as-development-platform-for-iphone-apps Now Apple has released the new iPod touch with Retina display and the iPhone 4, both with iO...
I'm running into a situation where didReceiveMemoryWarning is being called but viewDidUnload is not. The docs for didReceiveMemoryWarning say: The default implementation of this method checks to see if the view controller can safely release its view. This is possible if the view itself does not have a superview and can be reloaded ei...
I want to create build scripts for my MonoTouch apps. Basically, something that'll compile the application, run tests, zip into into an IPA file, check the source into SVN and write a message to the test log and email the beta testers. Just small scale stuff. What should I use? I'm looking at xbuild, but wondering if it's quite there ye...
I'm getting a bunch of memory leaks for this bit of code in Instruments. Here: NSArray *tmpCoords = [loc.mapCoords componentsSeparatedByString:@","]; and Here: coords.tileRow = [NSString stringWithFormat:@"%d",x]; coords.tileCol = [NSString stringWithFormat:@"%d",y]; Is there a better way to do this? I'm basically parsing ...
I have written a program that connects to a server on a given IP using the NSStream protocol outlined in Apple's stream programming guide. The connection and transfer of data works flawlessly, however if the user specifies the wrong IP and the program attempts to open the streams it results in the program becoming unresponsive. From wha...
Hello, I find myself writing a lot of repetitive code in UITableView, especially for config panels spending much more time on it that it seems worth. I was wondering if something like MonoTouch Dialog (http://tirania.org/blog/archive/2010/Feb-23.html) existed in Obj-C. Thanks! ...