ios

Is there an official reference stating that battery life is one of the reasons why a Garbage Collector was not included inside iOS?

In the following SO question, it is mentionned that the Garage Collector was not included in iOS in order to conserve battery power. Is there an offical reference from Apple stating that battery life is one of the reasons why a Garbage Collector was not included inside iOS? I have been looking for it on google but was not able to find...

Automatically download sales reports from iTunes Connect

I had a nice and hacky Perl script to automatically scrape and download sales report files from iTunes Connect. As of today, Apple overhauled the sales report site. It looks a lot nicer, but it uses a lot of JavaScript and simple scraping isn't going to work any more. So, does anybody know of a way to scrape this new site effectively?...

iOS wireless ad hoc distribution fails at the end of download with "Unable to download..." message.

iOS wireless ad hoc distribution fails at the end of download with "Unable to download..." message. I followed steps in the answer of here: http://stackoverflow.com/questions/3098290/ios-4-wireless-app-distribution-for-in-house-applications. Any workaround? ...

UITextField: Make it higher and position input text vertically centered

The default height of a UITextField with border style UITextBorderStyleRoundedRect is 31px. For an iPad App, I'd like to make a UITextField with a height of 60px and position the text vertically centered so that it looks good (by default the text is drawn only a few pixel below the top border of the UITextField). If i do the following.....

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? ...

What is missing in Objective-C that you don't want to program with it

Now that Apple relaxed the restrictions on developer tools/programs, I wonder what tempts developers to other languages than Apple offers by default, Objective-C, which is quite fun to program with. What missing feautures makes you not to program with it but something else? ...

Should view logic go in a UIView or (when applicable) its UIViewController?

I recently discovered that UIViews should only have UIViewControllers when they fill the entire window (or are managed by another UIViewController such as a UINavigationController or UISplitViewController). This quotation is from the documentation for UIViewController: You should not use view controllers to manage views that fill only ...

Problem doing logic tests after XCode 3.2.4 upgrade

The recent upgrade to XCode 3.2.4 and iOS SDK 4.1 lead to that my unit tests are not working any longer with my iOS project. The project is currently only running on the simulator, not real hardware. I tried to make a new blank project with a dummy test case added that will always pass, but it does not work either, giving me this result...

Content of cellLabel.text seems to be overwriting itself in random cells.

I have a UITableView that is being populated from an NSMutable array that has 79 entries in it. When I run my app and scroll down the table there seems to be multiple entries in one cell. It seems to happen about a screen height and a half down the table. For example: One object in the array is @"Dog" and another is @"Cat". In one cell...

Present a UIView over a view

How can I make a custom view in iOS which appears above the existing view,but smaller? It should be like UIAlertView, but taken from a .xib file. After user taps a certain button, the small view vanishes and the normal view appears. If this is posiible, how can I do it? And.. if it's not hard for you, please, include code. Thanks in ad...

Why masksToBounds = YES prevents CALayer shadow?

With the following snippet, I'm adding a drop shadow effect to one my UIView. Which works pretty well. But as soon as I set the view's masksToBounds property to YES. The drop shadow effect isn't rendered any more. self.myView.layer.shadowColor = [[UIColor blackColor] CGColor]; self.myView.layer.shadowOpacity = 1.0; self.myView.layer.sha...

Adding multiple resources with the same name to Xcode for iPhone

Hi Everyone, Is it possible to use double names for images into the resource group? Thanks :) ...

iOS SDK 4.1 UIImageView differences?

I just upgraded to iOS 4.1 SDK and now when I run my app in the simulator one of the images (the only one really) that was working fine before the upgrade is no longer showing up in my view. I've tried removing the file and re-adding it to the project, cleaning all targets and running a build, and making changes to the XIB where the UII...

OpenGL-ES Font Rendering (on iOS)... Sanity Check

I'm writing a game for iOS. It has a game map, and I'm using OpenGL to draw it, because the other options were too slow. I have units on the map, represented by alphabetic letters, a la Dwarf Fortress. However, rendering text in OpenGL bites. I'm presently using a performance-tweaked mutant of Texture2D, which was good enough to protot...

Recommended iOS books after beginner´s books

I have read and enjoyed the books: iPhone Programming: The Big Nerd Ranch Guide and Beginning iPhone 3 Development: Exploring the iPhone SDK Which book would you recommend as the third iOS book? ...

IOS. How do I sync audio to graphics like GrooveMaker?

I have been playing with the most excellent GrooveMaker - http://www.groovemaker.com/home - on iPad and marveling at how well the graphics sync to the audio. I will be building a imaging app where I need music to drive short animated loops. Can someone suggest what GrooveMaker might be doing and how that might be applied in a more genera...

On iOS, can I access the system-provided font's TTF file

I'm trying out FTGLES to dynamically display text in arbitrary fonts on OpenGL-ES on iOS (cf. my SO question here). That library seems to require direct access to the TTF file to use the font. Using kosher methods, can one directly access -- by path -- the system font files on iOS? I've RTFM'd and couldn't find anything. Barring that, d...

Looking for a graph layout framework for iOS

For an iOS application I'm making I need to show groups of elements grouped together according to their type, and different groups of types separated from each other in a nicely done layout. I thought of using an undirected graph, with the grouped nodes all pointing to each other in a sort of circular reference, and then each group as ...

OpenGL ES App on iPad/X-Platform: C++ or Objective-C?

I hope this has a technical (rather than a religious) answer, but I wonder if I should use Objective-C or C++ to create an OpenGL ES Application on the iPad? As the ultimate goal would be to compile it on Windows and OS X as well, I'm inclined to use C++ (and only use ObjC for the stuff that I have to: App Delegate etc.), but I have zer...

Odd Core Data error caused by over releasing?

Occasional reader and first time question asker, so please be gentle :) I am creating a Managed Object (Account), that is being passed into a child view controller where its being set in a property that is retained. Account * account = [[Account alloc] initWithEntity:entity insertIntoManagedObjectContext:context]; AddAccountViewControl...