iphone

smallest format for videos in an iphone app

I have a lot of videos I would like to embed into an app, and am currently just streaming them using an UIWebView browser I set up. I know there are formats available to email videos, where videos can be like 6 mb or less. What is the best way to do this for an iphone app. Keeping the quality of the picture to some extent with smaller...

Create ipa for testing on device using iPhone Packager

Hi, i'm following Christian Cantrell guide for packaging AS3 application for iPhone, but i can't find a way to use the packager for creating an app for testing on device. I've tried with -target ipa-test and -target ipa-app-store but when i try to upload my app on the iPad, iTunes throws an error sayng that i'm not allowed. I've done a s...

How can I avoid a crash when VoiceOver encounters UIPickerView as subview of UITableViewCell contentView?

In my app I have a UIPickerView as a subview of a table cell's contentView. I disable scrolling in the table view, and the arrangement works fine under normal circumstances. However, I've found that when VoiceOver (or the Accessibility Inspector) is turned on, the app crashes as soon as the picker is due to get focus. The error is: -[U...

Customize UIMuenuitem title

Hi, I am using the table to display a list of members and when I click a cell in the table I am creating some custom menu items and showing the menu by customizing the cellview class. Now we have total 6 menu items and some of them are long in length, is there any way I can wrap the menu title so that we have enough space to display all...

Which version of the iPhone SDK should I use for an OS4 app?

I'm wondering if I will have compatibility issues with OS4.0 if my app is built with the 4.1 SDK, or is this a non-issue? ...

iPhone locked Portrait, iPad locked Landscape

Hi, I'm trying to convert an iPhone app to iPad. The tricky things is that the iPhone app has to be locked to portrait view and the iPad app has to be locked to landscape view. I'm kind-of a noob at interface builder so I'm a little lost. Any help is greatly appreciated. Thanks! ...

Should I go for Flash/Java for iPhone development or continue with Apple tools?

Hello All, As Apple has removed the restriction for java and flash should I go for these tools or just continue developing iPhone/iPad apps using Apple tools(Xcode, objective C .. etc). I want to know the benefits of using apple tool instead of java or flash. Thanks ...

issue with StringByReplacingOccurrencesOfString options:NSCaseInsensitiveSearch

The options:NSCaseInsensitiveSearch is crashing my app when I have it in the following. Does anyone know why this might be? NSString* string3 = [[[[tvQ.text stringByReplacingOccurrencesOfString:@"\n" withString:@" " options:NSCaseInsensitiveSearch range:wholeString] stringByReplacingOccurrencesOfString:@"&" withString:@"and"...

rightBarButtonItem info button, no space to the right

Hey. I have a UIViewController set up to display an info-button on the right in its UINavigationItem like this: UIButton *infoButton = [UIButton buttonWithType:UIButtonTypeInfoLight]; [infoButton addTarget:self action:@selector(toggleAboutView) forControlEvents:UIControlEventTouchUpInside]; self.navigationItem.rightBarButtonItem = [[[...

iPhone app activated before associated in-app-purchase activated?

I recently submitted my iPhone app for review. I also approved the in-app-purchase for my app (and provided the in-app-purchase screenshot). It's a few days later and the app status has been updated from "waiting for review" to "in review"... while the in-app-purchase status is still "waiting for review". Could the app go live in the ...

Can you cast an NSString to an NSInterger? if the String contains numbers only?

I have some numbers stored in an NSString. Is it safe to extract them into an NSInterger like this : NSString* path = [[NSBundle mainBundle] pathForResource:@"rugby" ofType:@"txt" inDirectory:@""]; NSString* data = [NSString stringWithContentsOfFile:path encoding: NSUTF8StringEncoding error: NULL]; NSMutableArray *statsHolder = [[NSMut...

NOT targeting iPad with new 4.0 iPhone Application, error on submission

I'm about ready to pull my hair out. I've built a new app but opted to go iOS4 only and exclude an iPad target. I keep getting this error when submitting: "This bundle is invalid. An application targeting the iPad device family may not require a iOS Deployment Target of 4.0 or 4.1, which support iPhone and iPod only." I don't know wh...

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 :) ...

NSTimer crashes, when I call [Timer isValid] or [Timer invalidate]

Hi, I have two NSTimers in my iPhone app. DecreaseTimer works fine, but TimerCountSeconds crashes when I call [timerCountSeconds isValid] or [timerCountSeconds invalidate]. They are used like this: -(id)initialize { //Gets called, when the app launches and when a UIButton is pressed if ([timerCountSeconds isValid]) { [timerCountSecon...

Is there an iPhone library to provide something similar to an iPad popover?

Is there some library that provides a UIView/UIViewController similar to the iPad popover on the iPhone? I'm just talking about a temporary view that appears on top of the current view, and does the nice transitions that a UIPopoverView does on an iPad. ...

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

Previous View after dismissModalViewControllerAnimated of email function somehow defect

hello there, i am trying and trying.... but no result yet. i have a view with a navigationcontroller and -bar. in addition there is a tableview. if you click on a row, the iphone email function is getting startet by using the email example from apple (MailComposerViewController.h and .m). it opens and i am able to send or cancel the m...

UIView cancel animation

I currently have a view animating from one part of the screen to another. I want the animation to pause whenever the "pause" button is pressed. This means the animation needs to remain right where it is (frame location) when I "pause" the animation. I've tried a few things but nothing has given me the result I want. Below is a rough vers...

iOS4, XCode linking problems

I'm having problems using the QuartzCore framework. Here's the code that's trying to run: #import <QuartzCore/QuartzCore.h> CATransition *animation = [CATransition animation]; [animation setDuration:0.5]; [animation setType:kCATransitionPush]; [animation setSubtype:kCATransitionFromLeft]; [animation setTimingFunction:[CAMediaTimingFunc...

setting size of UIImageView in a UITableView cell programmatically - what is the origin?

I'm trying to set the size of a UIImageView programmatically using: [thisImageView setFrame:CGRectMake(x, y, image.size.width, image.size.height)]; I tried using x = 0, y = 0, but the UIImageView disappears. More info on why I'm trying to do this. I'm trying to display a high-res image on an iPhone 4 without using the iOS 4 SDK (only...