iphone

How do I make the rightBarButtonItem STAY when a view controller is pushed on?

When I push a view onto my view controller - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { AnotherViewController *anotherViewController = [[AnotherViewController alloc] initWithNibName:@"AnotherView" bundle:nil]; [self.navigationController pushViewController:anotherViewCo...

Setting clearButtonMode for UISearchBar

Haven't looked at this in a while, so I could be misremembering, but I thought it was possible to set the clearButtonMode of a UISearchBar without walking the subviews to find the UITextField instance. I'm looking now and not seeing anything, so it's entirely possible that I was hallucinating. ...

PVRTexture loading & display problem

i am using this file to display png file but to display pvrtexture i am having problem i have converted the png file into pvrtexture.i have looked at pvrtextureloader ex also but no result. plz help thanks in advance graphics=[SCGraphics getInstance]; splashscreenImage=[SCGraphics loadImageFilename:@"blue.png"]; [graphics drawImage:spl...

iPhone + DevToolsCore.framework error

Hello, I am using following environment: MAC OS 10.5.7 iPhone SDK 3.0 Xcode 3.1.3 And my client is using: MAC OS - Snow Leopard. iPhone SDK 3.1 Xcode 3.2 Whenever my client runs the application that I have developed on my Machine he get errors of DevToolsCore.framework (which I am not using in my application). Can anyone help m...

sqlite3 in iphone with 50 coulmns in a table. does performance create problem?

Hi, I am using sqlit3 in my iphone application to store details of the user I have a table carrying of 50 columns. Now i have to insert data within the columns. can anybody suggest optimum way to do that which will not impact the performance. Thanks ...

What is Delegate and Delegate Methods

Guys anyone please let me know difference between Delegate & Delegate Methods and its differences and its usages ??? ...

target conditional library search paths xcode

I'm trying to condtionally link in. .a static libraries by defines. Is this possible in xcode? Basically trying to wrap library specific code in ifdefs so it can be excluded at compile time by setting flags. ...

Lost my nib connection: how to get it back?

I am writing my very first genuine program for the IPhone. In the course of developing it, I decided to rename a subsidiary view controller (not RootViewController), so I renamed the .h and .m and .xib files. I had to modify a small amount of code, such as import statements, but the coding effort quickly recovered and all compiled and ...

pass a string array to web service in iphone

i have developed an iphone application, where i need to pass a string array to the web service now, i have a NSMutable array say sendSelectedID i know, i have values in the array, because when i display in for loop for(i=0;i<[sendSelectedID count];i++) { NSLog(@"%@", [sendSelectedID objectAtindex:i]); } this is the way i pass the NSMu...

Checking the existane of a particular character in an array of strings

i have an array of strings say for example @"123",@"373",@"221",@"921" .I need to check in how many elements of that array 2 exists and want to concatenate those elements into a mutable string and finally eradicate all two and prepare a string.I should have a string 13373191 out of the above example ...

Status bar touch event is not working inside tabbar ...

Status touch event for scroll to Top for tableView is not working inside the tabbar I have two view A and B Both the views are same and are table View controller View A is outside tabbar (simple View) and View B is inside Tababar. On View A status touch event is working fine . If on selecting View A cell it add the Tabbar view cont...

how can set tool bar items in appdelegate for ViewController?

Hi, i am using Following code in appdelegate.m file..but it did not work..? OthersController *mm_OthersController = [[OthersController alloc] init]; [mm_OthersController tScreen]; [mm_OthersController release]; when i put break point, it goes to the function tScreen correctly....but i can get output..?if i call the me...

Releasing the objects assigned to protocols

Hi All, I need a clarification in releasing the objects assigned to the protocol type. I have a protocol name iTaskFinish; I need to assign a particular object for this protocol to which class I have implemented the methods. so I declared as .h as follows id<iTaskFinish> taskFinish; @property(nonatomic, retain) id taskFinish; ...

Can iPhone Safari be prevented from showing the navigation bar during an AJAX call?

I've got an iPhone web-app which I'd like to look as native as possible. I've used the scrolling trick to get rid of Safari's navigation, and taken away scrolling to prevent it from coming back; however, every time my app pulls an XHR, it shows the navigation again. Because users will need to use external links to get into the app, I c...

Objectiv C: how to check if variable is nsarray or nsmutablearray

Hello, how can i check a variable is NSArray or NSMutableArray??? Thanks ...

Could somebody help me in spotting an error regarding uploading an image from iPhone to server here?

I am strictly following the answers from http://stackoverflow.com/questions/125306/how-can-i-upload-a-photo-to-a-server-with-the-iphone. This part below is the part that get called when my button is pressed. NSLog(@"buttonPressed: %@", [ConnectServerTryViewController getPathForFile: @"myPic.png"]); [[EPUploader alloc] initWithURL:[NSUR...

how to remove subview from app delegate?

hi, i have one function in app delegate the function has code in appdelegate.m OthersController *mm_OthersController = [[OthersController alloc] init]; [mm_OthersController toggle_OF: mm_OthersController]; [mm_OthersController release]; the toggle_OF function is in OthersController.m file which has been set in IB for tab ba...

iPhone SDK warning: class MyAppViewController does not implement the 'UITabbarDelegate' protocol

Im working on an iPhone app, not using IB, and programmatically created a UITabbar with three items in a UIViewController in a view based application, I used one delegate method, that wont work without the last line in the snippet below( setDelegate method). I dont have a tabbarviewcontroller. UITabBar *tabbar = [[UITabBar alloc] in...

Can I by-pass In-App Purchasing?

I have an online store, and, for esthetic and technical reasons, I want to offer my customers an iPhone app. Does Apple allow me to have a 'buy now' button or a similar purchasing method, without using the InApp Purchasing mechanism, in order to have a direct transaction between me and the customer, rather than through Apple? Thank you ...

iPhone UIImage - Data Persistance

Hi All, Simple question regarding data persistance between application sessions. My application allows the user to select an image from the Library using a UIImagePickerController. The selected photo is then used as the background to the application. As the UIImagePickerController delegate method actually returns an image as opposed t...