iphone

insertRowsAtIndexPaths Doesnot call cellForRowAtIndexPath

I created sample tableview application and I have an add button above the tableview, when user pressed the add button only we want to add row to table view. I am write code like this - (void)viewDidLoad { isEditing = NO; Mutarray = [[NSMutableArray alloc]init]; [super viewDidLoad]; } - (NSInteger)numberOfSectionsInTableVi...

Should I use Threads to accelerate the application

Hi there, I've got an game app displaying a lot of images that need to be processed before being displayed. The set of images need to be refreshed with new ones every 2 seconds. to speed up the display : While the first set of images is displayed, I'd like to prepare in background the next set. I've got a specific class "board" that I...

textview not responding to delegates iphone

Hi all, In my application, I'm forcefully showing/hiding keyboard by making textview becomefirstresponder and resignfirstresponder and also setting textview editable YES and NO respectively. But after hiding keyboard if I tap on textview, the keyboard doesn't show up. I'm setting textview delegate to self. And the delegate method is fi...

how to recognise Single tap using UIWebView

Hi Folks, I am using UIWebView to show a pdf file in my MainViewController. On single tap I want to load a new View to the MainViewController. But the UIWebView is not allowing default UITouch event -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { } How to solve this problem? Regards ...

How to draw Y-axis grid in core-plot?

Hi, How to draw X-axis grid, ie draw horizontal line against y=axis value? please help me out? sri ...

NSString Converting into a doubleValue after extracting NSString from UIPicker

I have : NSInteger dollarrow = [ValuesPicker selectedRowInComponent:kDollar]; NSString *dollar = [dollarlist objectAtIndex:dollarrow]; double converteddollar=0; I want to do a for loop on this and get the value in double , I am trying this : for(dollar=1;dollar<=99;dollar++) { converteddollar = converteddolla...

iphone username password MD5

I am having one UITextField label as Password and Username. I have to convert UItextField (input from the keyboard) to MD5 and store it to another UITextfield. Code would be appreaciated. ...

About download file using ASIHttpRequest

I plan to use ASIHttpRequest for downloading files from back-end server. Before actions, post questions here to know more about this feature. As sample source codes given : ( demonstrate downloading remote JPG file ) ASIHTTPRequest *request; request = [ASIHTTPRequest requestWithURL:[NSURL URLWithString:@"http://allseeing-i.com/ASI...

How parse html string in iphone

hi all, i m using php file for using data in my application, in this file i post data on the server and if i get the data from the server then it is in html formate. so problem is that i have a string with html tags how i use data in that string. how i extract data from html string. ...

unable to play video in iOS 4

I have written code to play video in iPhone OS 3.1.3 and video is playing fine. but when i am trying to play video with the same code then video is not playing in iOS 4. I know that Media player framework is changed for iOS 4. Is there any way i can play the video on different OS without preparing separate binary?? Thanks, Jim. ...

How to add subview to a webview so that the subview would scroll along with webview?

I have webview. Now I want to add a subview to it. I added it using addsubview method. The view got added, but did not scrolled with webview. I want my subview to be scrolled with the webview. How can I do that? Regards, Akshay. ...

declare global variable in nsobject class (objective C)

Hi, I declare a variable and some methods in the global nsobject class like @interface classGlobal : NSObject { NSString *myGuid; } @property(nonatomic,assign)NSString *myGuid; and i synthesize in the .m class. but when i try to access the myGuid variable in the same class (classGlobal.m) then it shows the error "instance variab...

i want to call an image to be displayed in a view

hi I wanted to display randomly selected images in a view. below is an example of code i am using to generate random numbers to be displayed in a lable. ( its around about way to code it and im aware there is a more concise approach to code this. im doing it this way for a particular reason that i wont go into now). i wish to replace the...

Problem with NSThread

I have a question; in my program if i call 2 times [self performSelectorOnMainThread:@selector(callDectectionMove:) withObject:[NSNumber numberWithInt:(int)i] waitUntilDone:false]; I create 2 thread or not? Because in my program i'm not sure to create 2 threads. Thanks -(void)callDectectionMove:(NSNumber*)arrayIndex{ NSMutableDictio...

How to determine if iPad user taps within an irregular shaped image?

I've hooked up a UITapGestureRecognizer to a UIImageView containing the image I'd like to display on an iPad screen and am able to consume the user taps just fine. However, my image is that of a hand on a table and I'd like to know if the user has tapped on the hand or on the table part of the image. I can get the x,y coordinates of th...

iphone release dealloc

hi all! I wish best understand the difference between dealloc and release function.... example... I have my class derived from NSObject calle MyClass in my code, to use this class, I create an instance of MyClass.. // initialization MyClass* test = [[MyClass alloc] init]; //do some stuff.... // release?? [ test release]; is right?? ...

Is it ok to use exit(0) in "applicationDidEnterBackground:(UIApplication *)application" ?

My app crash on exit after upgrade to sdk 4, the error is bad memory access. I figured that if I put "exit(0)" in "applicationDidEnterBackground:(UIApplication *)application", the app would exit normally. However, is this ok? This is my only "solution" to the problem so far. NSZombie is not too helpful this time... ...

How to save changes to NSManagedObject - iPhone 4.0

Hi. I'm using Core Data to fetch news from the memory and I want to modify the unread attribute after the news is read. Code: //method called from within a UITableViewController -(void) didCloseNews:(NSIndexPath*)indexPath{ //get the newsItem - NewsItem subclasses NSManagedObject NewsItem* newsItem = [self.fetchedR...

iPhone - PushMeBaby example error

Hi guys, im having an error while running the PushMeBaby examples as followed in this tutorial for push notifications http://mobiforge.com/developing/story/programming-apple-push-notification-services In the console the error message is connect returned error PushMeBaby[708:a0f] MakeServerConnection(): -36 PushMeBaby[708:a0f] SSLNe...

add account functionality similar to the mail app on the iphone

I want to create an 'add account' functionality similar to the mail app on the iphone. I've created a Settings.bundle, but I want to do some more advanced things. I want to list the accounts that you have enabled dynamically in the settings screen, and I'm not sure how to do that using the settings plist. ...