iphone

NSString issue for iphone application

I'm using a NSDictionary to get a NSString from a plist with the following code: NSString *fullPath = [[NSBundle mainBundle] pathForResource:@"TestIds" ofType:@"plist"]; NSDictionary *dictionary = [[NSDictionary dictionaryWithContentsOfFile:fullPath] retain]; NSString *testid = [dictionary objectForKey:@"testId"]; and then I save it i...

In iphone, how to select desired size image from an image

Hi, Like in MS paint when we want to select portion of image we select rectangular box & drag over the image by click & holding left mouse key till the desired location. How can we do the same functionality in iphone. Plz help.... ...

Multiple NSURLCoonections in same View using iphone sdk

Hi, Can any one of you post the code snippet, example tutorial on handling the multiple NSURLConnections from the same viewController using cocoa Touch framework.... Thanks for all your future help..... ...

Logic behind 255 in Uicolor

Hello, We generally write 143.0/255.0 in Uicolor setcolor RGB arguements . Can anybody pl tel me the logic behind Dividing by 255.0 . I have some knowledge but i guess it is incomplete. ...

Ipad device orientation problem

Hi, I am presenting MFMailComposeViewController(mailController) using presentModalViewController on my UIViewController, In mailController(subclass of MFMailComposeViewController) class i have overhide shouldAutorotateToInterfaceOrientation as - (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation ...

CALayer -hitTest: not respecting containsPoint: overload

Back again and have a different question with the same function that I posted before: - (AIEnemyUnit *) hitTestForEnemyUnit:(CGPoint)where { CALayer * layer = [self hitTest:where]; while (layer) { if ([layer isKindOfClass:[AIEnemyUnit class]]) { return (AIEnemyUnit *)layer; } else { layer...

Weird Compilation Error on Xcode

Simple problem... I had some comments on my code and deleted them and got an error. After some hours I arrived at the source. This code works: switch (indexPath.row) { case 0: NSLog(@"case 0"); break; case 1: // Clients NSLog(@"case 1"); ViewClientListTableController *viewListTableController = [...

External accessory notification:

Dear all, I am developing an application, it get data from accessory via UART port. I am having a problem when my application runs for a long time, it uses much more memory, after the iPhone into sleep mode, and wake up again, my application can not open the session with accessory after the accessory has been authenticated completely. A...

how to prevent user to editing from geiven range in iphone textView

hi i am currently worked on simple textview application in which i need prevent user to write data in textView & after preventing he may be change other value of textview.below my code for prevernting user to write into textview. - (void)textViewDidChange:(UITextView *)textView { NSString *textValue=textView.text; NSInteg...

NSTimer gradually slows down

Hi everyone, I'm creating a small stop watch with UIImageViews for the digits.I have 2 views controllers.One is the main view controller and when you press the "Stop Watch" button it loads the 2nd view controller with stop watch.I have created a NSTimer like this.... timerMain = [NSTimer scheduledTimerWithTimeInterval:0.01 target:self ...

My iPhone core data app runs perfectly the first time but crashes when run after that

Hi, my app is based around two classes: Jam and JamItem, each with a TableViewController to display / add items. The model contains two entities for the two classes, and there is an optional one-to-one relationship between them. JamItem has a name field and a price field. Jam has a quantity field. There are corresponding NSManagedObject...

Play(Stream) Videos in MPMoviePlayerController from a URL ??

i am trying to play a video from a Url with help of MPMovieplayer which loads it in the Quicktime player while i want the video to play in my application only(no background mode)?? how can i achieve that?? will playing the video in a UIWebview instead of MPMoviePlayer work?? Also when QuickTime Player loads only Audio plays and no video...

Search UISearchDisplayController w/ Scope Only

I am using UISearchDisplayController to pull in results from a webservice but I want to be able to search even if the search bar's text is empty. It seems like results are only being pulled in if this is not empty. How do I update & show the results tableview by only scope? ...

How do runtime-created sub views communicate with the view controller?

Hi In my iPhone project I have a UIViewController in which I add an instance of a subclass of UIView. From this instance I need to communicate back an integer to my view controller. My current solution is to send a message from my instance to my App Delegate which sends a message to the view controller. It works, but it feels a bit mess...

Message controller

can i check that user is sending sms, or cancel composed message , in my application when it is running in background .... help will be appreciated :-) ...

How to play video in portrait mode in iphone

hi to all, I am creating a movie appliction in iphone/ipod .i have added a video to it . when i run it in simulator it runs properly in portrait mode.But when i run my app in ipod it opens a blank video and in landscape mode .but in simulator when i click on play my video directly plays in portrait mode and in ipod it opens a blank vide...

UIButton as UINavigationbar button

I have a Tab bar application. and in one of the tab bars I have a navigation contorller. Im trying to set a UIButton with an image as the right button the navigation bar. UIButton *refreshButton = [[UIButton alloc] init]; [refreshButton setImage:[UIImage imageNamed:@"refresh_icon.png"] forState:UIControlStateNormal]; [refres...

subscribe to public google calendars on iphone

i am making an application in which i have to show a list of public calendars so that users can subscribe to the calendar they want..how can i implement it through coding...? ...

[iPhone] hash a password string using SHA512 like C#

Dear All, I am developing logon function for my iPhone Application, so I want to hash the password using the SHA512 hashing algorithm then get the result as NSString (the result should be the same with SHA512 in C#). After spending a lot of time in the internet, I still not find out the solution yet! :( Is there anyone has the solution...

NTLM authentication using iPhone / iPad

Hi, I am trying to develop an iPad application for enterprise deployment. The application needs to access some of the data whose access is currently controlled by NTLM authentication. I am looking at options to authenticate the user from the native application and access the rest of the system. Anybody pointers will be helpful. ...