iphone

How to open an existing project on button click

Hi to all, I am creating a game named space invaders in opengl. i am creating a windows based application.i have imported my existing space invaders project which does not have any .xib into this windows based application. in this application i have one .xib .In this .xib i have one button. when i click on this button i want my existing...

This coder requires that replaced objects be returned from initWithCoder:'

Hello Everybody! I'm testing my app on simulator 3.1.3 release, it runs fine. When it come to simulator 3.2 or 4.0, it crashes right from the beginning: 2010-09-28 18:36:39.957 Angeloni[23268:207] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'This coder requires that replaced objects be returned from init...

How to capture application inactivity Time in iphone

In my application i want to set inactivity timeout (IdleTime). How can i set this? Is there any way to monitor all events in myappdelegate? For eg i have two UIViewController classes. when i click one control in UIViewController1 or UIViewController2 it should be monitored by myappdelegate ...

Getting cropped Image from camera in iphone

Hi, I am working on a app where i need to get a image from camera but before that i want to allow cropping of the image. I am using UIImagePickerControllerCropRect in UiImagePicker to get the cropped rectangle. I am able to get the original image from the picker but i am not able to crop it using UIImagePickerControllerCropRect. Can som...

how to convert NSinteger to String.

Hi I want to convet int to string in objective c how to do that. my code. for (i=0; i<=200; i=i+10) { // here i want to convet the value of i into string how to do this } Thanks in Advance. ...

How to save and retrive CGContextRef iphone

How to save and retrive previous context from iphone ? I am using the following code int lineX=0;lineY=0;Xpos = 0;Ypos = 20; CGContextRef context1; context1 = UIGraphicsGetCurrentContext(); for(int i=0;i<[DataTable count];i++) { NSString *strVal = [DataTable objectAtIndex:i]; [strVal retain]; NSLog(@"strval = %@",strVal);...

can i add a view containing a tabbar as a modal view

Will it cause any issues with submission.I dont want to remove it as it works well for me. ...

showing opengles page through window based project

Hi to all, hello I have the game project which is create on the opengles application .And I have some page which I have to display starting of the game on button action .How can I do this .can I create window base application for for button action to call game loop which create on the opengles .Can it pssible to do that .If yes how can ...

get by column names in sqlite statement. iphone

Hi, Currently I am getting the values from statement like this: [[NSString stringWithUTF8String:(char *)sqlite3_column_text(ReturnStatement,0)] retain]; I want to get the values by entering the column name like this: [[NSString stringWithUTF8String:(char *)sqlite3_column_text(ReturnStatement,@"FirstColumn")] retain]; Is there any ...

Can we use higher resolution images in UIImageView?

Hello All, Is it possible to use higher resolution images as it is i.e 1800 *1200. After checking with instrument come to know. image unpacking is done by [ width * height * 4 ] and in this case it takes 8 MB. Problem comes when we have two UIImageViews and both are holding UIImages with 1800 * 1200 res. it is clear application will ...

NSXMLParser Entity Problem

I have a .NET web service that is returning the following: <ArrayOfAddressLocation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://tempuri.org/"&gt; <AddressLocation> <AddressLocationId>0</AddressLocationId> <SubscribedCount>0</SubscribedCount> <City>Flor...

How to know if a number is larger then the maximum value in iphone objective-c

A read some posts here and google and don´t find a substancial answer. Supose I have a largest number and I have to assing to a variable. The problem raise when I have a GUI where the user will enter the number. How I can´t know what the value the user will put in a field (let´s think in a UItextField), when I get the number and then ass...

simply add a row to tableview

NSString *ref = [item stringByMatching:myregex1 capture:2]; NSString *value = [item stringByMatching:myregex1 capture:3]; I simply need to add this to my orderTable uitableview, how the hell do i do it:P. i cannot find a simple way of doing this please help :) i would like it to be in the uitableview like this (@"%@ :: %@", ref, valu...

Debugging iphone app

How to debug iPhone aplication? How can i find out what's going on in simulator? i'm beginner in xcode development and don't know what's problem with code below.. the app is just crashing on button click.. - (void)viewDidLoad { myLabel = [[UILabel alloc]init]; [myLabel setText:@"Labela"]; myLabel.frame = CGRectMake(50.0,5...

How to do: use MPMoviePlayerController to play a remote video that must request from proxy server

Hi everyone I'm debugging an iphone app in iphone simulator and need to do a job described as title there is a socks proxy in mac's system network setting the proxy works fine when using NSMutableURLRequest, but can not works with MPMoviePlayerController please help, thanks. ...

iPhone, How do I get a double out of my NSDictionary Array ?

Heres my array NSMutableArray *arrayTmp= [[NSMutableArray alloc] init]; I populate it like this double price = sqlite3_column_double(stm, 3); double accumPrice = sqlite3_column_double(stm, 4); [arrayTmp addObject:[NSDictionary dictionaryWithObjectsAndKeys:desc,@"desc", due,@"due", price,@"price", accumPrice,@"accum",nil]]; ...

Objective-C: Facebook username from link returned by Graph API call

Fetching http://graph.facebook.com/514417 from the Facebook Graph API gives me the NSString @"http://www.facebook.com/mattdipasquale". How do I extract just mattdipasquale every time? Can I assume the link will be the same format every time? In that case, I could just do: NSString *fbUsername = [[result valueForKey:@"link"] substringFro...

MPMoviePlayerController view disappearing when next/previous button is pressed

Hi all, I have this very strange problem. I create an MPMoviePlayerController in my view controller with the following code: player = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"vid96" ofType:@"mov"]]]; player.fullscreen = YES; player.controlStyle = MPMovieControl...

How to get change text from textfield

Hi All, I have tableview with custom cells.The cell is having 2 textfields.From viewcontroller i need to find the changed text in that textfield. if i use * (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string this method is not at calling calling from the mainvie...

error exe-bad access after executing this line

NSURL *url = [NSURL URLWithString: [NSString stringWithFormat:@"%@%@%@%@%@",[ConfigDB valueForKey:categoryURL], @"?ownerId=", 20,@"&userId=",64]]; can any one tell me wat wrong with this ...