iphone

Will my MPMoviePlayer run on iPad if I compile under 3.0

I'm having lots of issues with the MPMoviePlayer lately. My app is targeted for 3.0+. So if I compile it under 3.0 will it run on an iPad? Because it doesn't work on 3.2 because of the new MPMoviePlayer changes since 3.2 ...

How do you specify a really large character in UIButton?

I have a series of buttons that have suit symbols on them. Currently I provide these suit symbols as bitmaps. In preparation for iPhone 4 I'd like to use text instead. However Interface Builder rescales the button to account for whitespace underneath the symbol so I can't get the image to fill the button completely. Any hints on gett...

iphone: custom UITableViewCell taller than the default cell view.

Hello, I'm creating an application that consists of a ListView with 5 rows: - 1st one containing a graph - 2nd to 5th rows containing some data with the same formatting. I have created 2 classes: GraphCustomViewCell and DataCustomViewCell. Depending upon the position of the cell I load the correct CustomCell with: NSArray *topLevelObj...

Is it possible to localize the app icon and Default.png?

Is it possible to localize the app icon and Default.png files? Do I just drop them in the respective language folders or must I do something else? ...

text size in label

how can i limit the number of characters in a label ...

Secure/Best Practices for Account Creation for app that uses REST services?

I apologize if this is a somewhat stupid question, but I am very new to the REST programming realm. I have an application that is both web, mobile and machine accessible, and I will be leveraging REST-like web services for the mobile and machine part. I was going to use the S3 authentication model for the REST requests, however that re...

label in my tabel celll

hi this is lak.. thank you for your fast feedback but that not worked for me i am using labels in table.. UILabel *label1 = (UILabel *) [cell viewWithTag:1]; label1.backgroundColor = [UIColor clearColor]; label1.text=aStation.station_name; label1.textColor = [UIColor colorWithRed:0.76 green:0.21 blue:0.07 alpha:1.0]; [label1 setFont:[UI...

If a View Controller tries to get rid of it's view, what happens with the superview?

Think of this: A view controller's view is added as subview to another view. Now the view controller tries to unload that due to low-memory warning. I believe that is impossible because it is retained by the superview. But what if the VC really unloads the view, and then loads it back again when it is needed? Who will add is as subview t...

how to dismiss my current view

hi i am having text view and on it one button to move to main view ,but i am using this is not working for me.. BackButton.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter; BackButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter; [BackButton addTarget:self action:@selector(Back) forCon...

Question on ExtAudioFileRead and AudioBuffer for iPhone SDK

I'm developing an iPhone app that uses the Extended Audio File Services. I try to use ExtAudioFileRead to read the audio file, and store the data in an AudioBufferList structure. AudioBufferList is defined as: struct AudioBufferList { UInt32 mNumberBuffers; AudioBuffer mBuffers[1]; }; typedef struct AudioBufferList AudioBufferLis...

getting plist from documents directory instead of Bundle

I'm trying to point to the documents directory instead of the Bundle, I have the following code: - (id)initWithLibraryName:(NSString *)libraryName { if (self = [super init]) { libraryPlist = libraryName; libraryContent = [[NSArray alloc] initWithContentsOfFile:[[NSBundle mainBundle] ...

What's the point of having to set the frame of a view of an UIViewController when it adjusts it anyways?

From the docs: Create a root view object that is sized to fit the screen. The root view acts as the container for all other views associated with your view controller. You typically define the frame for this view to match the size of the application window, which itself should fill the screen. However, the view contro...

Isn't it better to create the subview hierarchy in -viewDidLoad rather than in -loadView?

The docs say that the whole subview hierarchy can be created in -loadView. But there's also this -viewDidLoad method which sounds nice to ovewrite for actually building the hierarchy, when the view loaded. I guess it's a matter of taste only. But maybe doing so in -viewDidLoad hast the advantage that the view controller already adjusted ...

How to morphing of two images in iphone programming

how to do morphing of two images in iphone programming.? ...

UIScrollView resizes when a UIViewController is pushed in UINavigationController. Why?

Hi! When I push a UIViewController within a UINavigationController, the UIScrollView in the view changes dimensions. Now even I am trying to resize the UIScrollView. It wont simply resize. It maintains the framework dimensions. Any idea why this would be happening. Example: My NIB has a view which has a scrollview with dimensions (320...

Interface Builder wont let me rename the "View" class name to existing Class

FYI: Im following a tutorial from the book "Beginning iPhone Development", chapter 12. Here is the setup, i have a two files in the Classes folders called QuartzFunView.m and QuartzFunView.h (ie. a class called QuartzFunView). Now if i double click on my blaViewController.xib file, then click on "View" and in the Identity Inspector tr...

How to create an alertview with search bar in iphone?

I want to display an alert view with a search bar option on it.How can i create a search bar in a alert view.Please help me out.Any sample codes would me more helpful. Thanks ...

Two UIViews, one UIViewController (in one UINavigationController)

Given an iPhone app with a UITableViewController pushed onto a UINavigationController, I would like to add a right bar button item to toggle between the table view and an "alternate" view of the same data. Let's also say that this other view uses the same data but is not a UITableView. Now, I know variations on this question already exi...

Iphone SQL Server Express data sync

I have asked this question before but not for sql server express. It seems that web services is not an option for syncing sql server express and iphone. Besides that it is not a necessity to sync within 3G or a Wifi connection. It is good enough to connect the iphone to the pc so that it can find the sql server through the network (prob...

iPhone Application: force landscape mode, strange behaviour...?

This is a method I use to switch display views, based on a string passed (for example you could pass MainMenuViewController to switch views to a new instance of that class): - (void)displayView:(NSString *)newView { NSLog(@"%@", newView); [[currentView view] removeFromSuperview]; [currentView release]; UIViewController...