iphone

Localization of Default.png is not working

Hi I wonder if anyone has encountered the same problem and how they solve it. I want to localize Default.png so I do the following steps which from what I understand should be the correct way (please correct me if I'm wrong). Select Default.png in xcode Command-I to Get Info Click on Make File Localizable Go back to General Tab (wh...

iPad protocol problem

Hello guys, I have a little problem; I have this protocol defined as so below: @protocol someProtocol <NSObject> - (void) changedStoryForIndexPath: (NSIndexPath *) indexPath; @end I have it defined in a file named "ListViewController.h", logically I have to import the header in another file like: #import "ListViewController.h" then ...

One UIButton at a time

Hello Guys, Here is some code I have been playing with; for some reason I cannot get it to create a single button at a time. For example you have ; for(i = 1; i <=12; i++) should mean that for each time an external button is pressed a new one is created until 12 buttons have been created. Then there should be a i = 12;break somewhere....

iphone tab bar design dilemma

Hi, I have to make an app for client where there are functionalities best defined by tab bar interface. I am no UI designer but I have done some basic research and read the Human Interface Guidelines by Apple. Another point is that app deals extensively with Web Services and user has to login before using any of the features of the app....

detect pdf hyperlink

I am trying to write an application about PDFviewer in Iphone I use UIscrollview for PDF context how can i detect hyperlink in PDF document such as table of content(when I click the link it will navigate me to another page of document) please help me! ...

how to read data from CFG file for iphone

I want to read data from a CFG (configuration file). How do I read it? Is it the same as XML? lets say i have this text messge in text.cfg Restaurant,tab0.png,tab0/index1.html Shop,tab1.png,tab1/index1.html Office,tab2.png,tab2/index1.html Apartment,tab3.png,tab3/index1.html now i want to parse them and create 4 dynamic button each h...

Why am I getting a "Conflicting types" warning on the below instance method?

I have the below code - (UITableViewCell *)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)cell forRowAtIndexPath:(NSIndexPath *)indexPath { [[cell textLabel] setFont:[UIFont systemFontOfSize:10.0]]; return cell; } For some reason, I'm getting the following error: warning: conflicting types for '-(UITableVi...

How to stop MPMoviePlayerController from showing "This movie could not be played."?

Hi everyone! I use MPMoviePlayerController to play some Video and Audio streams on iPhone. Sometimes some steams aren't available, so on iPhone OS 3.1 I get 4 "This movie could not be played" alerts, even if I catch all the notifications. Can anyone recommend me how to prevent this from happening? Thanks in advance! ...

Iphone Speaker Buttons used as App Controls

Is it possible to use the external speaker volume controls of iphone as a control for an App you have developed? For example as a control of a timer app for which the enable button for the timer to start counting is the top external volume button and disable timer is the lower external button. If so, which classes of iOS 4 sdk can ov...

How do I set Three20 to use SBJSON instead of YAJL?

I've tried defining EXTJSON_SBJSON by setting my project's Other C Flags: -DEXTJSON_SBJSON It doesn't work: TTURLJSONResponse still uses YAJL. ...

When to release a webservice communication object

I've asked this before but never got a clear answer, I think perhaps I was asking the wrong questions or maybe not clarifying my question so I'll try again. I have an app that needs to retrieve menu items, product details etc. from a server. I have the data retriever / parser as a separate object that I create when needed. I release it ...

install iphone sdks side by side

Im trying to get my xCode to contain all iPhone sdk's from 4 back to 2. But when I download the DMG files, it seems to only allow me to have an xCode with SDK versions 2 - 3.1 OR 3.2 - 4, not all together. How can I install the SDK's into one xCode so I can build for all different OS versions? Thanks EDIT:: Ok so I know I can set the...

How can designers and developers work together with Monotouch? Is itt different than with the SDK?

For web applications you can have one designer create a mockup, and then another one (Perhaps Off Shore) generate CSS, templates, themes, skins...whatever. How can you do something similar with Monotouch? How would it differ from what can be done in SDK workflow? Can you use some of the same tools as for WPF/Silverlight? (And still be ...

How to display the value of responseData of ASIHTTPRequest?

Hi to All, I have used below code in my application of User Registration to interact with remote database. -(IBAction)checkFirstName:(UITextField*)textField { NSURL *url = [NSURL URLWithString:@"http://mysite.com"]; ASIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url]; [request setPostValue: first...

two views orientation problem

hi all, I am new to iphone development.. am creating one small application where two viewcontrollers like loginController updateController For apply orientation i created two views for each controller like for first controller these are 'landscapeLoginView' & 'portraitLoginView' & for second these are 'landscapeUpdateView' & '...

can i update my local text file on iphone

i have a text file so can i update this text file from web ??? lets say i have 1. NSString *filePath = [[NSBundle mainBundle] pathForResource:@"MyFile" ofType:@"txt"]; 2. NSData *myData = [NSData dataWithContentsOfFile:filePath]; 3. if (myData) { 4. // do something useful 5. } right now Myfile.text is havi...

Huge amount of data want to display in iphone

I have read huge amount of data , Using Tcp connection and i want to display that data in iphone . One important thing is , iphone will not hangs at any time . Can anyone help me? Thanks in advance......... ...

passing array from one view to another

i am a new iphone programmer i want to create an array that keeps adding a value at its last position when i moving from one view to another because at last view ,i need that full array which has all values from all views.... i tried taking an array and sending it view to next view (array is defined in all views) but when i tried to put...

How to customize tab bar button and tab bar selected color?

I want customize tab bar..Not a gray color..How to customize tab bar ? How to change tab bar selected background color (default: blue color)? ...

how to lisent to each button for iphone

i have created 4 dynamic buttons but how to write method on each of them for (i = 1; i <= [a1 count]-1; i++) { NSString *urlE=[a1 objectAtIndex:1]; NSLog(@"url is %@",urlE); #pragma mark buttons CGRect frame = CGRectMake(curXLoc, 10, 60, 30); UIButton *button = [UIBu...