iphone

EXC_BAD_ACCESS when moving iPhone app from 2.2 to 3.0 simulator

Well I had an app I was developing in iPhone SDK 2.2 and I recently built and launched it in the 3.0 simulator. The base SDK is still set to 2.2. I figured that would avoid issues. Instead I get Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00000000a1b1c1f3 Crashed Thread: 0 Thread 0 Crashed: 0 ...

A lot of noise while playing audio files with AVAudioPlayer (iphone)

Hi, I get a lot of noise during playback. The noise is not there when I play it on my mac, so it has to be an error with the AVAudioPlayer. Has anyone else experienced the same? I have had this problem for several months, but never got an answer anywhere. All replies appreciated, Hans Espen. ...

Full Screen Image Preview

Can someone please tell me how to get a full screen image preview view when someone taps on an image view of a nib... like the one in appstore application screenshots.... it will be a real help... Thanks in advance ...

iPhone Xcode Project Organization Question

I built a simple iPhone application for a customer This will be distributed via iTunes using Ad Hoc Provisioning profile I need to build two different executables 1) a test application and an 2) official application the only differences between the two applications are: . the Default.png startup screen . some image icons in the applicat...

Refreshing a UITableView

I have a UITableView subclass and a UITableViewCell sublass that I'm using for cells. I'm bulding all my cells in advance and store them in an array from where I use them in cellForRowAtIndexPath. Aside from this I have a thread that loads some images in each cell, in the background. The problem is that the cells don't get refreshed as f...

If NSDictionary is good for paired values, what is good for triple values?

NSDictionary is good for key-value pairs, by what data structure is best for when you have three values? Is is best to create a class for those 3 values, and then let each object in an array contain instances of that class? To be specific: The data structure, let's call it Person, I envisage has three values: (NSString)name, (int)age, ...

Is iPhone bluetooth function limited in OS 3.0?

A simple question. Is it possible to use bluetooth in iPhone to transfer file to other mobile phone such as Nokia or Blackberry. I tested iPhone bluetooth function today. I found it's possible to detect other phone in discovery mode. But the iPhone is not detected in other devices. ...

What do I have to do to get Core Data to automatically migrate models?

I have read in the documentation about automatic /lightweight migration for Core Data models - but am having problems in the reality of implementing it. As I understand it the application should notice that the model it has and the model that exists on a device already are not the same. If you have only added attributes or relationships...

Shared Library for iPhone and BlackBerry

I have a set of functionality (classes) that I would like to share with an application I'm building for the iPhone and for the Blackberry (Java). Does anyone have any best practices on doing this? ...

how to generate buttons programatically?

hello i am stuck in a strange situation.i want to generate buttons on a view using a loop . suppose i want to generate 3 buttons.i have added a uiview btnframe to my main view.now i want to add button inside that view using that view's cordinates.how do i calculate btnframe's bounds. ...

Accessing Web Service from iPhone

Questions on calling web services from iPhone? Anyone have any recommended tutorials on doing this? Anyone have any best practices on implementing security with these calls? Has anyone made or seen any shared libraries or wrappers for easy web service calls from the iPhone? ...

Wrong time on SQLite timestamp on the iPhone

From my iPhone app I insert some data in my sqlite database that include a date using the CURRENT_TIMESTAMP default value. Everything works great except for the fact that the time is 1 hour behind the time it should be. And that happens both on the device and the Simulator. Any sqlite settings (like current time) i can access somewhere? ...

Hiding status bar completely

I hide the status bar in applicationDidFinishLaunching using [[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO]; That works fine except the status bar is there while the app is loading. Meaning, when the default.png is displayed, I see the status bar. Is there a way to have the status bar not show at all? ...

How to determine the direction of a iPhone shake

I am using the accelerometer to scroll multiple subViews in a UIScrollVIew. I want the view (portrait orientation) to scroll to the right when the user flicks the iPhone to the right, and scroll to the left when the device is flicked to the left. I thought I could do that just by noting positive or negative x acceleration values, but I...

Fast enumeration in OS 3.0

I just tried compileing my iPhone app against OS 3.0 and I get a compile error when using fast enumeration. I'm trying to go through an NSArray containing cComment classes: for (cComment* newComment in comments.comments) And I get this error error: type of accessor does not match the type of property 'comments'. This works flawless...

Querying Core Data with Predicates - iPhone

So I'm trying to fetch objects from core data. I have list of say 80 objects, and I want to be able to search through them using a UISearchBar. They are displayed in a table. Using the apple documentation on predicates, I've put the following code in one of the UISearchBar delegate methods. - (void)searchBarSearchButtonClicked:(UISear...

Second instance of UIViewController instantiated, loosing initializations done on original. Why?

Hi, I'm having a problem with the following code. As you can a TripDetailsController is created (subclass of UIViewController) and this one is initialized with the initWithNibName method. This initWithNibName takes an extra argument (tripDetails), see code of TripDetailsController class below. The variable td has a value and when steppi...

What accessories do you wish you could program for on the iPhone / iPod Touch

The new iPhone O/S 3.0 added support for programming for accessories - but what accessories would you like to program for? --UPDATE-- How would you use accessories like blood sugar monitors, car engine system monitors, credit card readers etc? ...

How can i fix this mismatching iPhone provisioning problem?

I recently upgraded to the iPhone 3.0 sdk. Once i did this, i needed to reinstall the correct provisioning profile on my iPhone. However, i can no longer deploy to my device when i need to debug things. In the organizer window i get the following error: The iPhone “(my iphone)” doesn’t have the provisioning profile with which ...

Load iPhone keyboard before displaying view

Hi, I would like to have the keyboard already displaying when I show my view. I have two view controllers, of which the keyboard is part of the second. However, when I call [textField becomeFirstResponder] during the second view controller's viewDidLoad method, the keyboard slides up on top of the first view. Is there any way I can ha...