iphone

i want to save my information eventhought application is terminated?

i have used segment control for distance measuring in km or Miles so if i select any option from both and application will terminate and when i start application it should show the lastly used value. ...

How to troubleshoot deallocation of object in uitableview?

I have a table view with tall cells. About 300 in height. The cells are custom and have an associated nib. In cellForRowAtIndexPath, I access an object in an array using indexPath.row. The object has properties, which I assign to labels on the custom cell. This works fine for the first two cells. Once I scroll enough for the third ...

parse XML file that contains unicode characters in iphone

Hi, I am trying to parse one XML file that contains some unicode characters.I tried to parse the file using NSXMLParser but i am unable to parse XML.Parser stops when it encounters any unicode characters. Is there any other good solution to parse XML file with unicode letters? Please suggest. Thanks, Jim. ...

UIView subviews don't responde to delegates

Hi, I have following code in viewDidLoad myViewController = [[UIViewController alloc] initWithNibName:@"myView" bundle:nil] ; self.myView = myViewController.view; [self.view addSubview:myView]; This code loads view from myView.nib (I have corresponding view controller m and h files of course). myView view has UITextField and other con...

question related to UITextView

I have n number of UITextview and that are added to UIScrollview.and uiscrollview is added to self.view.Now,I want that 1>If user enter text in first UITextview ,then as lenth increase os UITextview ,another UITextviews which are below it also reinitialize and maintain properly according to the size of first UITextView.inshort another U...

[iPhone] Objective-C : UIScrollView manual paging

Hi Folks! I want to use the scrollview as something like a picker in horizontal mode. The scrollview holds up to seven subviews. Each subview represents a value. Always three views are visible and the one in the middle is the selected one. Scrollview visible at start: __ | V1 | V2 Scrollview set to view/value two: V1 | V2 | V3 S...

getting wifi status in iphone

please suggest me how to get the wifi status in iphone/itouch. the reachability code given by apple doesnt work consistently. Please help me thanks in advance. ...

Making a phone call from within an app

Is there any way to make a call from within an app without quitting the app? If yes please help. If not, what should I do to save the state of the app before quitting the app and resuming from that state on restart? Thanks for any reply.. ...

Website does not automatically fit to iphone screen

Hello, The following code does not fit onto the iphone screen; how do I have to define the viewport? <html> <body> <center> <div id="karteu" style="background: url('../customer/Karten/karte1.jpg') no-repeat left center;width:714px;height:540px;" > </div> </body> </html> Normally the site should be zoomed, so i first should see the web...

How to make the 1st line in certain amount of text in a Label bold?

I have about 400 character length string with a heading called Details. In this 'Details' is to be bold and of fontsize 19. While all the remaining text starts in the next line and should be of fontSize 18 like the contents. How can I do all this by using a UILabel? Plz help me... ...

Copying the bitmap contents of a UIView's context to that of another UIView

Basically what I want to do is copy the already rendered content (a PDF drawn into the UIView's graphics context using CGContextDrawPDFPage()) onto a similar UIView, without having to re render the PDF. The idea is, that I'd then be able to perform an animated transform on the UIView and later re render the PDF with more accuracy. For bo...

Calculation route length

Hi, I have a map with about 80 annotations. I would like to do 3 things. 1) From my current location, I would like to know the actual route distance to that position. Not the linear distance. 2) I want to be able to show a list of all the annotations, but for every annotation (having lon/lat) I would like to know the actual route dist...

masked the pasword input to UITexfield

Hello everyone I hope to mask the text input to UITextFiled as: "ABCDE" to "*****" below are my codes without function - (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { int l=[textField.text length]; range=NSMakeRange(1, l ); string=[[[NSString all...

How to intercept touch events globally?

I have an view which is sometimes covered by some other views. However, if the user slides the finger across the screen, I want to slide that underlying view across the screen, too. I could start making custom views for all those covering subviews and forward all kinds of touch events, but that's somewhat cumbersome. Maybe there's some ...

How to put a UISegmentedControl under a NavigationController?

I was wondering what the best approach in order to have a UISegmentedControl appears just under the a navigationController just like in the AppStore application. AppStore example: http://img.skitch.com/20100420-fmyefsw4xxmqc7fq8k8j6whexq.jpg The content I what to put in the different views are UITableView just like the AppStore app. W...

tracking the position of dragview

Hello everyone I put a dragview on an UIView, I hope when I drag the dragview, its superview (UIView) tracks the position of the dragview and moves itself to the position where to keep dragview at the original position on the UIView. The codes show below: #import <UIKit/UIKit.h> @interface DragView : UIImageView { CGPoint startL...

Altering ManagedObjects In NSArray

I have an entity called 'Job' with two boolean attributes named 'completed' and 'logged'. I am trying to retrieve all completed jobs that have not been logged at app start-up and change them to logged. I'm able to get all the completed but unlogged jobs with this fetchRequest: NSPredicate *predicate = [NSPredicate predicateWithFormat:@...

Asynchronous I/O on Mac OS X

Hi, Meaning the C10K problem, what is the best way to do asynch I/O on Mac OS X (assume to use on Mac and iPhone/iPad)? On Linux our choice is epoll, on Windows is I/O Completion Ports. Top priority is performance and scalability (thousands of connections). UPDATE OK. As Darwin is BSD-like system, my common idea is to use kqueue. Is...

how to change UIPageControl dots

greetings! I've seen apps (e.g. meebo) that have different indicators on UIPageControls instead of the default white circles. is there an easy way to do this? I've read the docs for UIPageControls and it seems that there is no methods to replace the images. thank you ...

Accessing an owners variable

Okay, I have a ViewController that has 12 UIButtons as instance variables, and they are created in interface builder. I want to access another variable in the viewController from the UIButton's init method. Is that possible? By the way, I'm writing in Objective-C in the iPhone SDK. Cheers. ...