iphone

App crashes on simulator. Works on iphone device

I recently upgraded to Xcode 3.2.4. and started experiencing strange behaviour. When I deploy my app onto the iPhone, it works fine. However, when I deploy this on the simulator for testing, the app does not even start on the screen and I receive the following error: [Session started at 2010-09-14 00:01:26 -0400.] GNU gdb 6.3.50-200...

How to make a UIBarButtonItem look like a UINavigationBarItem

I have an iPad application with screen flows which don't map neatly to the navigation controller model, but still have the concept of "Back". I'd like to manage my own toolbar and have a "Back" button where I decide where it goes. Is there a way to make a toolbar button have the look of a back button as in UINavigationBarItem? Thanks ...

download asynchoronus images on iphone

how to make this code asynchronous?? as this code allow to change image on tap in imageview but right now its slow - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { NSUInteger sections = [indexPath section]; if (sections == 3) { ltxt.text = [NSString stringWithFormat...

Custom uibutton in ARKit programmatically ..

I am playing around with the ARKit API ...I wanted to add Custom UIButton within the box on the right side which appears on the screen generated by the code below in the app delegate : #define BOX_WIDTH 350 #define BOX_HEIGHT 150 - (UIView *)viewForCoordinate:(ARCoordinate *)coordinate { CGRect theFrame = CGRectMake(0, 0, BOX_WIDT...

Is there a way to forbid multi-tasking in iOS 4?

I want my app to quit when the user taps the home button, without going to the background. Is this possible? ...

Adding subview over parent View

Hey all, I have a navigation view controller and I want a subview to slide on top of it when a button in the parent view is clicked. Now, the thing is when I do this: [parentView addSubview:slideView]; [UIView beginAnimations] //setting the frame for sliding [UIView CommitAnimations] the sliding view goes under the navigation ba...

How to use NSComboBox in iPhone

Hello all,M a new comer to iPhone world ,i want to use NSComboBox(DropDown list somewhere) in my application. but not having any idea....m totally blank about NSCombobox...could any one guide me..Thank you..... ...

Fixing the orientation of view controllers

Hi friends... I have a button in my RootViewController .... when i click on this button it will navigate to some otherViewController. but i want that when i click on the Button otherViewController's Orientation should be Landscape & when i back from this page(otherViewController) i should got again Portrait mode. lots of Thanks for any ...

Iphone SDK:[error]Cannot find protocol declaration for "NSNetServiceDelegate"

this code is from a sample in .h part : @interface ViewController : UITableViewController < NSNetServiceBrowserDelegate > { NSMutableArray * tableData; NSNetServiceBrowser * _browser; NSMutableArray * _foundServices; NSURLConnection * _connection; NSInputStream * _consumerStream; NSString...

using tabBar Delegate methods from tabBarController.

Hi I have a tabBarController,I want to use the delegate method of tabBarDelegate not of the tabBarControllerDelegate.i.e; I want to use - (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item I am doing this: self.tabBarController.tabBar.delegate = self; and then using the above method but the problem is that the above...

Accessors / Getters and Lazy Initialization

I have a question about overriding auto-generated accessor methods. The following would not work (I believe) because each getter references the other getter. Is there a rule that accessor methods should not use other accessor methods, or do you just have to watch out for these situations individually? -(UIImage *) image{ if(image...

issue with UITableViewStyleGrouped

I have 2 UITableViewControllers, both are using same data source but for some reason one of them has weird header gap on the top. I don't understand why. When I'm changing style to UITableViewStylePlain the positioning is fine but I need grouped style here. Any thoughts? ...

XCode Debugger Console doesn't display anything

Hello I'm developping iPhone applications for a while with xcode. But since this morning, my debugger console doesn't display anything anymore. I've reinstalled XCode. But nothing. Has someone had a similar problem? What can i do to repair it? Thanks for your help ...

How to upload a Video in iPhone SDK.

Hello All, I want to upload a video to webserver. I can upload the video but the problem is how should i pick a video. Means I know there is a default UIImagePickerController that i can use to pick image, is there any thing similar to pick movies in iPhone? Hope you are getting my problem. Thanks ...

Iphone audio only working in Simulator NOT in Device

Hello, I have set up part of my app to play a sound. Simple - but only is working in Simulator. Initing audio session this way: - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { if (self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]) { // Custom initialization } Audio...

Resizing to fit an Image in a TableView Cell

Hello, I`m using an Image that is 320x30 using this code : UIImageView *bg = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"higlight_cell_mockup.png"]]; [bg setContentMode:UIViewContentModeScaleAspectFit]; cell.backgroundView = bg ; Problem is, it's still looking like this : instead of scaling the image up to fill the cell...

cant access new frameworks with xcode 3.2?

i had x code 3.1 and sdk 3.2 but i wanted to use new frameworks so i installed x code 3.2 but i cannot run new applications now.can anyone tell what is the problem?i also want to tell that i installed only x code not iphone sdk ...

Plist for windows

Is there any plist editor for windows that is not showing the XML but works like a table like the one in x-code ? Thanks, ...

how to convert data to mp4 format

Hi, in my apps im able downloaded a short video file from my server using NSURLConnection but the data i received is in data format which cannot be played using MPMoviePlayerViewController. My question is: it is possible to convert NSdata to mp4 file? and how do i play it using MPMoviePlayerViewController. would really appreciate some co...

Twitter iPhone- is it possible to post on twitter using iphone app without providing pin number.

hello all, i am using oAuth method for login to twitter in iPhone application... it need two steps to allow me to post. first is username and password authentication after validating it, twitter provides pin number to authorize... then i copy or memorize and send to twitter for authorize me to post for each and every time i login to twi...