iphone

In IPhone How to use multithreading with static methods in NSThread

I an developing an iPhone application in that,I am trying to download multiple files simultaneously from ftp server with threads.but my method to download is written in header file and that method is static.so if i try to access that method with to threads then variables of method for first thread are overridden by variables of first thr...

iPhone : UITableViewCell: cell carry background color strip

When i used self.view.backgroundColor = [UIColor colorWithPatternImage: [UIImage imageNamed:@"image_name.png"]]; the cell carry bottom part of image and it looks like strip on view ...

Why is there is missing "\n" character when I convert NSString to NSdata?

Dear all, When I try to convert a NSString object into a NSdata object, I use the followning code: NSString *finalWordList = wordList.text; NSData *data = [finalWordList dataUsingEncoding:NSUTF8StringEncoding]; wordList is a UITextView object. After that, I upload the NSdata object to my web server, which will be in .txt format. Whe...

How to pass data from parent view to child upon opening?

I want to load data (an array of strings) from the parent view into a set of UITextFields in the child view upon presenting the modalView. I know how to pass from child to parent, and I'm sure it's even easier to go the other way, but I don't know how. Thanks in advance! UPDATE: Update removed because I found the problem (double relea...

how to do an adblock for UIWebview?

Although apple banned flash which disabled a lot of ad. I still like a adblock like functionality for browser. I noticed that adblock do so by checking all load request's url. Is that possible with UIWebview? Any suggestions are well come Thanks ...

iphone App publishing Issue

We had submitted/distributed our application using wild card bundle identifier. For Example :- 48NPCXXX.in.co.xyz.* Now we are publishing an update version of the application with push notification feature. How we can publish the update version with wild card appID. Or we have to publish as new application.But in this case how old u...

How to add a section header in UITableView

I am a new comer in iPhone,i do'nt know How can I add a section header in UITableView? Thank You ...

Objective C: Memory Leak of Dictionary used in singleton..

I am using a singleton class to share data between views in my iphone app. My singleton class contains a dictionary which I allocate in my -init method: - (id)init { if ( self = [super init] ) { self.dataList = [[NSMutableDictionary alloc]init]; } return self; } I release it in my dealloc metho...

UITableView create cell in code - reload table returning old cells

I'm not sure if this is the correct way to create a UITableViewCell in code, but it works perfectly, until I need to reload the table as its returning old cells so not loading the new content. - (UITableViewCell *)tableView:(UITableView *)tableViewData cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"...

Where the iPhone store the calendar information?

Hi, everyone, I want to ask a question about the iPhone application. Where does the calendar information stored in the iPhone? Is it by using EKEvent? ...

alert view in iphone

i have a problem about alerts when i am adding following to my program it shows error UIAlertView *alert=[[UIAlertView alloc]initWithTitle:@"That's it" message:@"THANKS FOR USING" delegate:self cancelButtonTitle:@"bye" otherButtonTitles:nil]; [alert show]; - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInte...

how to give action to progress bar

hi i am new to iphone. what i am doing is cretating a imageview and a progressview i create iboutlet for both imageview and progressview and take a timer after 4 min i will call imagepicker.All is well but the progressview is no action only display as idle i am writing code for that is progressview.progress=0.0; [self.view addsubview.pro...

Releasing UIImage imageNamed

When I use UIImage imagenamed: should I set the variables which hold UIImages to nil before exit? I notice that sometimes when I switch between views which have UIImages, the memory keeps growing and growing with each switch back and forth. ...

Assigning same action to multiple buttons at once

Hello, can I assign same action to multiple buttons in the Interface Builder once they are all selected by one connection? ...

Create a clickable image map on iPhone

Hello All, I wanted to create a clickable map for the United States, when user select a state it will be highlighted and display another detailed view.Like the following web application. http://www.usflashmap.com/samples/real-estate-map/index_ext.html I would appreciate any suggestion on how this can be achieved on a native iPhone a...

How to get the NSError message in Iphone sdk?

Hi guys, I am having the method in my view controller as shown below: - (void)parser:(PaymentTermsLibxmlParser *)parser encounteredError:(NSError *)error { NSLog("error occured"); } Here I need to show the Actual error message in the NSError in my alert can any one suggest how to get it. Hope I get Quick response from you guys. ...

iPhone/iPad UIScrollView subview orientation and setAutoresizeMask problem

Hi, I have a UIViewController that is being pushed via a UINavigationViewController. The viewController's view has a UIScrollView as a subview. I'm initializing the UIScrollView with the same bounds as the viewController's view bounds and set the auto resize mask to flexible height/width so it will still occupy all the screen. This work...

Recommendation for editing/deleting section

Apple's documentation on UITableView discusses how to add/edit/delete rows, but it doesn't discuss adding/editing/deleting sections is detail, specially with respect to the UI. In case of add/delete rows, you can apply "add" and "delete" styles on the row using: - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingS...

Managing a large number of expensive UIViews in an UIScrollview

The iPad app I am designing is going to show a full screen UIScrollView allowing the user to flick through a large number (200 or more) of images - all the same size, no paging. The images are to be loaded from the web and don't have a predefined ordering. Right now what I do is I load and parse an XML feed which contains references to ...

UIScrollview paging back

hello everyone i my iphone app i have scrollview with pages and i know what page on screen now with that: if(currentPoint.x == screenWidth){ currentPage += 1; screenWidth += 768; [self loadScrollViewWithPage:currentPage]; , but i need also know, what page on screen when user scrolling back. How it's possible? Thanks. ...