ios

Most effective way to populate a picker view with range of integers?

I have a simple UI picker view in an iOS app (iPhone) and I'm looking to pre-populate it with a range of numbers on launch. What would be the most pragmatic/quickest/optimized way to populate it? I'm new to iOS development, so I'm just starting to test the waters. The documentation is pretty decent but I'd like to get some insight fro...

Understanding local core data syncing between multiple iOS devices using iTunes

I'm diving into iOS development and I have a quick noob question about Core Data. As I understand it, any data that in an app's Documents folder is backed up to iTunes when the user syncs their device. Does that mean if my core data sqlite db is in the Documents folder, then that data will be synced between multiple devices with the same...

Why do my UIButtons look transparent in iOS4 when they looked fine in iOS3.1.x?

I have an app under development that worked fine under iOS 3.1.x. I was at a good break point, so I decided to upgrade my dev environment to XCode 3.2.4 + iOS4.1. My app has a number of UIButtons that I made colored using the "stretch a colored image as background" technique described elsewhere on StackOverflow: UIImage *myImage = [UII...

Xcode 4 Unit Test Bundle Target is missing

According to the documentation here, there is supposedly a target called 'Unit Test Bundle' for setting up unit tests. However in my XCode4 I cannot find such a target in the 'Add Target' dialog box. Is it a setup issue, or did I miss something? ...

message queue for iOS / iPad - something like MSMQ?

I have an iPad app that works both on and offline but when I am offline there are web service calls that will need to be made once online availability is an option again. Example: A new client is added to the app, this needs to be sent to the web service but since we are offline we dont want to slow the user down so we let them add lo...

subviews and performance issues in iOS

I have different view controllers and i linked them using insertsubview There are atleast three levels of subviews for every screen the users sees. I havent tested it on device yet. I want to know whether this causes any performance issues Also, is using NavigationBarController pop and push views better than addsubview and remove from s...

Test app on iPhone without paying $99 to Apple

I developed an app for iPhone with Xcode 3.2.4 and iOS 4.1. Now I want to test my app on my iPhone, but I don't want to enroll for a developer program. I searched in google and found a lot of tutorials, but they are not working. Then I asked me if it is because I use iOS 4.1. Is there a way to test the app? I've a jailbroken iPhone 4 wit...

Poor performance loading a scroll view

Hi, I have a view controller whose view consists of a paged scroll view controlled by 2 buttons (previous and next). In this scroll view are several custom views, each the size of one page. When I load the main view, the scroll view is set up to contain all of these subviews. The performance of my app is currently unacceptable in thi...

Initialization for ViewController under NavController in TabBarController

I have the relatively common setup of a TabBarController whose tabs contain NavigationControllers which have TableViewControllers as their roots. I'm trying to perform some logic on initialization of one of these TableViewControllers but can't seem to find what init function gets called. My goal is to add a listener in the TableViewCont...

Relationships between static application data and updatable user data with Core Data

I am developing an iPhone application that has a large database of items which the user can mark as favorite or add to certain lists. Currently, the SQLite file is first copied from the bundle to the document directory to make it writable and used as a Core Data persistent store. However, I will run into problems when I need to deploy a...

Reusing methods in multiple classes...

I've just implemented iAds in an app with several distinct UIViewControllers. I have the delegate methods in each one for - (void)bannerViewDidLoadAd:(ADBannerView *)banner and - (void)bannerView:(ADBannerView *)banner didFailToReceiveAdWithError:(NSError *)error that show and hide the banner, along with a setup method that creates a ba...

How to make a simple EQ AudioUnit (bass, mid, treble) with iOS?

Hi, does anyone know how to make a simple EQ audio unit (3 bands - low, mid, hi) with iOS ? I know how to add an iPod EQ Audio Unit to my AU Graph. But it only give you access to presets and I need proper control of the EQ. I've looked around for some tutorials or explanations but no luck. Thanks. André ...

CATiledLayer drawInContext called after associated view is gone

I ran into an interesting iOS problem today involving a CATiledLayer. This only happend on the device - not in the simulator. My view draws in its CALayer via the drawLayer: inContext: delegate callback. This layer has a CATiledLayer-derived sublayer, which does its own drawing in an overridden drawInContext: method. Both layers are ...

How do I download and install just the iOS SDK?

Possible Duplicate: Way to update iPhone SDK without having to re-download Xcode? I just installed Xcode from my Snow Leopard disc which does not include the iOS SDK. The only download I see on Apple's website is that of both Xcode and the iOS SDK (which does not start downloading). I only want to download the iOS SDK as Softw...

When to set kAudioUnitProperty_StreamFormat ?

When to set kAudioUnitProperty_StreamFormat (and kAudioUnitProperty_SampleRate too)? For each AU in my AUGraph ? Or is it enough to set it jus for the AU Mixer ? André ...

How to send an Array of NSString use NSURLRequest?

I have an Array of 5 NSString. I want to send my array to my web use NSURLRequest as URL query data? Anybody can help me :) ...

iOS Core Data - design pattern

Hi, I'm a little stumped with an issue that I think goes back to my design. I'm constructing a TableViewController based on a mainly static set of rows (4) - using that as a basis for a UITableView. Each row will kick off varying different views (detail, and UITableViews)... In my managed object context for the top view I can easily n...

UITextField inside UITableView cell

Hello, I have been reading through a lot of things trying to figure out what I am doing wrong. I have been trying to add 4 UITextFields inside of UITableView cells. I have the UITextFields created through IB, as well as the UITableView. I add the textfields to a NSMutableArray and then in the cellForRowAtIndexPath I am adding these tex...

iOS - Multiple sections in UITableView with the same objects

I am trying to make a tableView that contains notes. The notes are tagged by the user. Each note might have several tags. I want to be able to sort the notes by tag into different sections. If a note has several tags I want the note to appear in all the different sections that the note is tagged for. Right now I am using the NSFetchedRe...

[iOS] UIButtonTypeInfoLight inside rounded rect?

I know, I know, it's a venial aesthetic question, but I want to insert an info button in my navigation bar not as the default info UIButton (UIButtonTypeInfoLight), but inside a rounded rect so that it appears in a uniform manner to the other UIBarButtonItem buttons. Is it possible that there is no way? Using custom UIButton with an imag...