iphone

Error while creating in app purchase in itunes connect

I'm having trouble while creating an In App Purchase in iTunes Connect. I have created a test user and am able to see the form for creating the in app purchase. However, when pressing 'Save' I get the following error message: "There was an error saving changes. Please try again later. If the problem persists, please contact us." This e...

iPhone - start multiple instances of AVAudioPlayer simultaneously

Hi I am using multiple instances of AVAudioPlayer to play multiple audio files simultaneously. I run a loop to start playing the audio files (prepareToPlay is called beforehand and the loop only makes a call to the play method) But invariably, one of the players does not play in sync. How can I ensure that all the 4 players start playi...

iPhone compressed audio formats that will play on Windows Media player

I have to record audio on an iPhone that will play back on Windows Media Player, using no non-standard codecs; that is, using no codecs that don't already ship with WMP. (Corporate requirement.) The audio has to go base-64 to a server, so I need to get the audio size as small as possible. Even at 8Kb recording frequency, AIFF files take ...

Tab bar limits?

Is there any way to increase the number of items in the iphone tab bar beyond five? I know that it can create a "More..." tab, but it seems excessive for just one more tab. I have an app which needs six (Alternatively I will have to do some deep meditation to get rid of one). ...

Leaks showing extended memory usage when on iPhone vs Simulator

When, I run my application in the simulator using the Leaks instrument, it uses about 2.5mb of memory. When I run it on the iPhone, it takes forever to launch, slowly climbs to ~34mb of memory and then crashes. However, when I run it on the iPhone without Leaks, it launches quickly and runs fine. Why is this? ...

Is there a tool to diff/merge/sort localizable strings files?

Localizable strings file which are used for Apple/iPhone apps localization have the following format: /* COMMENT */ "KEY" = "VALUE" Note that KEY is unique in a given strings file. COMMENT is optional however it can help the translator with some additional info. Example: /* Menu item to make the current document plain text */ "Make ...

Unable to pushViewController for subview

I have a UINavigationController and I have seperate UIViews that I switch between using a UISegmentControl. On switching the views, I add the view as a subview to my navigation controller's view: [self.view addSubview:segmentTab1.view]; and [self.view addSubview:segmentTab2.view]; Then, in the subViews, each has a UITableView, but ...

Forcing code signing refresh in Xcode

In our environment, we share resources across multiple projects and platforms. When building for iPhone, only a subset of those resources are needed. Since that subset is still considerable, we have a manifest file listing what goes in, which limits the copy. We have our own Python script which does the copy, refreshing only the files...

Why does instantiating a UIFont in an iphone unit test cause a crash?

I'm trying to unit test some iphone code that instantiates fonts. I've narrowed it down to the following crashing unit test: #import "test.h" #import <UIKit/UIKit.h> @implementation test - (void)testFonts { [UIFont systemFontOfSize:12]; } @end This crashes with the error: Test Case '-[test testFonts]' started. /Developer/Tools...

UITabBar appearance problem + NSThreads

I'm having a problem when trying to add a UITabBar as a subview of my AppDelegate's window. The link above shows a screenshot of the messy state of the screen. TabBarInAMessyState.png The results are unpredictable. In this picture only the UITabBarItem's titles were affected, but sometimes the TabBar background is not shown (consequent...

Creating a button on View1 from View2

Hi, I'm in a struggle. I have this app with two views. View1 empty. View2 with a textfield and an OK button. I want to accomplish the following: On View2 the user inserts the name for a button; its title. (the way user reaches view2 is not relevant. It could be with a button or a tabbar button on View1.) After pressing OK button, View...

How can I format text in UITableViewCell?

Hi, I'd like to format text in my application's UITableView, like Apple did in the iPhone's Contact application. Basically last name is bold, and first name is not. Is there a clean and simple way of accomplishing this? ...

Programatically Select all text in UITextField

How can I programatically select all text in UITextField? Thanks! ...

Objective-C member initializiation of autoreleased objects

Hey so if I have some property like @interface MyClass { NSArray* myArray; } @end @property (retain, nonatomic) NSArray* myArray; In my init method should I do something like myArray = [[NSArray array] retain]; Or self.myArray = [NSArray array]; I would think the former would be preferred as it is more clear what is going on...

Set First Responder in MFMailComposeViewController?

I'm using Apple's MailComposer example application to send email from within my application (OS 3.0 functionality). Is it possible to set the To, Subject, or Body fields as first responder with MFMailComposeViewController? In other words, the behavior would be: the user presses a button which presents the mail view (presentModalViewCont...

iPhone Unlock Slider With Mootools?

I try to make a slider similar to the iPhone unlock Slider, that forwards to a linked site, when complete, and returns to its initial position when the slider wasn't dragged to the end. This is not meant to be a iPhone webapp, i just want to put this to a general website as a effect. So far I've tried those two tests, but i'm stuck on ...

iphoneSDK: UINavigationController Back button is causing app to crash.

My app is crashing when I move between ViewControllers. This is the sequence that causes the crash salesViewController displays confirmViewController. When I press the back button in confirmViewController to go back to salesViewController, the application crashes. I am not sure why. Here is the code for both of the controllers. Thanks ...

iPhone Adding Views on Windows Practice

I'm learning how Objective-C on the iPhone layers views onto the main window. I've tried remaking a basic program to draw two different colored rectangular views onto the main UIView for an app, but it does not seem to work. My current output is a white screen. However, when I close the application, it briefly shows the two rectangles...

iPhone credit card swipe reader?

I am looking for a credit card reader which can hook up with an iPhone/iTouch and supports the external accessory framework of the iphone sdk. Do you guys know any solution to the problem? Is there any credit card reader that supports the official specifications of iPhone accessory model or any way to hookup an the off the market reader...

mobileconfig file and safari

hello, I've created a mobileconfig file and deployed it to webstore. To install mobileconfig file on iPhone i need to either send it in a mail or user can type webstore URL on iphone safari to install it. But my question here is: Will it be possible to create a webview interface or something else and install mobileconfig file silently on...