iphone

How do I fix a multi-line UILabel that is overflowing it's containing UITableViewCell?

I'm having trouble displaying a multi-line UILabel in a custom UITableView cell. I'm currently using this to calculate both the height of the cell... NSString *cellText = [howtoSection objectAtIndex:row]; UIFont *cellFont = [UIFont fontWithName:@"Helvetica" size:15.0]; CGSize constraintSize = CGSizeMake(260.0f, MAXFLOAT); CGSize labelS...

iPhone OS Testing Best Practices

Not so long ago iPhone development was quite simple, only a few OS versions and even less devices. Now however, there are 2 major OS versions and 5 different devices to consider. As a company about to release several applications testing has been become more and more of an issue. What are the best ways to test all combinations, do I ...

iphone development: Too many log on gdb

When i debug a programmer, I found too many lines useless info which appear in GDB. this kind of infomation may come from iphone framework. it is not logged by my code. the info like this Node 48 TrialMT(102,102,101,101) Node 58 TrialMT(102,102,101,101) Node 69 TrialMT(102,102,101,101) Node 72 TrialMT(102,102,101,101) Just too much....

How can I control showing of views on iPhone

Hi, Here is the scenario. I have 4 view controllers v1, v2, v3, v4 which are displayed using 4 tabbarcontroller of iPhone. now I push another view sv1 to v1 (while I am viewing v1, I use pushviewcontroller). Now if I press v2 tabbar (while I am viewing sv1), and then press v1 I see sv1. However, I do not want this behavior. I want to sh...

Autosizing Masks

I've got a navigation controller set up and on the root view, there's a tab bar at the bottom. When I push to the next view and pop back, the position of tab bar changes and no matter what mask I set, it won't stay at the bottom of the view. I'm also using prompts in my navigation item so maybe that accounts of the change in position. ...

How to load subview from the main view?

Hi, I am very new to Obj-C and learning iphone development. My question is how to add subview from app delegate. Lets say I added subview called "MainView" from "applicationDidFinishLaunching" method. - (void)applicationDidFinishLaunching:(UIApplication *)application { MainViewController *aViewController = [[MainViewController all...

iphone 3.0 GM Seed restore problem

have anyone restore ur device to iphone 3.0 GM seed alr?from the pre-install advisory,after restoring the device to 3.0,these device is permanently locked and cannot be restored to earlier version. is it true?any suggestion can prevent it? ...

ABUnknownPersonViewController remove "Text Message" button

Does anyone have any idea how to remove the "Text Message" button for this controller? It automatically shows up when a number is set. Thanks, Fred ...

iPhone Audio Issue

I released an iPhone application a few months ago. Everything has been working fine and I have confirmed at least 20 different devices/users working flawlessly. In the last week though I've had two reports have people hear no audio (it's a soundboard app). I've been able to dialog with one of the guys and confirmed that the phone wasn...

iPhone button images

I use fotolio.com for images in my iPhone apps. However, button images are always lacking in the SDK. Are there any good resources for iPhone button images? These are different from the large number of iPhone app icon images that are available everywhere. ...

Implementing multiple views in iPhone

I am trying to develop an app which can have multiple views (up to 30). Each view will have have similar navigation but the content will be different. Do I have to create 30 view controllers or can I get around by creating a view controller for the data (content) alone. I am sure creating multiple view controllers is going to be ineffice...

iPhone - save UIImageView state

Hi I have created a subclass of UIImageView and I am handling the touches for its objects inside the subclass itself. Now when the user is about to exit the app I want to save the state of the images. And as there are multiple transforms which might have taken place on the images (I am saving all the transforms in an array), I want to ...

How to show day of the week in UIDatePickerModeDate for UIDatePicker?

Hi, Is it possible to show day of the week in UIDatePickerModeDate just like UIDatePickerModeDateAndTime. Thanks in advance. -Joey ...

how to get cell's text on the nextview when click on a cell in uitableview

i want to show the text text from the uitablevicell selected to the nextview's navigationbar..any idea regarding this? ...

Modify SpeakHere to record audio played on device

Could someone explain to me how I could modify Apple's SpeakHere iPhone sample code to record audio being played on the device rather than audio being inputted through the mic. ...

How do I access the SQLite DB my app uses on the iPhone

Is there any way of getting the SQLite DB off my iPhone so I can view the data in it? I've managed to get the DB on my iPhone into an odd state, and rather than keep trying to replicate in simulator, I'd like to investigate the state of the DB from my dev install. Is this possible? ...

UIKit. How to set Transparent color?

Is there any way to set any color of UIImage (or it CALayer content) as transparent color? I cannot use single image resource(PNG file) with built-in transparency. I need to hide some area from first Layer by overlaying second Layer with specific color at that place. So I need to set this specific color as "transparent color" before ...

How can I highlight a UITableViewCell

I'd like very much to temporarily highlight a UITableViewCell to draw attention to the fact that the containing data has changed. there is a UITableViewCell method: -setHighlighted:(BOOL) animated:(BOOL) but I can't make it do anything? Here is the relevant part of the view controller: - (UITableViewCell *)tableView:(UITableView *)ta...

How to make a phone call through programming

Can anyone tell me how to make a phone call through programming in iPhone OS... ...

creating multiple objects of UIImagePickerController

I want to give zoom effect to the iPhone camera image while capturing the photo. The zoom effect should be for particular part of the current image. This effect should be before capturing the image. For the sample I create the two objects of UIImagePickerController, the code is below .h UIImagePickerController *imagePicker_obj1,imageP...