iphone-sdk-3.0

Get latitude and longitube from city name

I would like to enter the city name in the UISearchBar,then the map will jump to the current city. How to do it? ...

How to make a UIView that can cover the navigation bar?

I want to show the UIView in full screen, but show the status bar, other things, like the navigation bar need to cover by the UIView. How can I do so ? Thank you. ...

What's the fastest way to transfer data between iPhone & computer (Mac or PC)?

I want to continuously transfer bulk of data between an iPhone app and a desktop app. (e.g. to capture the full screen, and show it on iPhone screen at real-time). What's the best way to do that? Currently I implemented a communication via TCP socket. But I can't sure if it's the best in both bandwidth / latency concern. Especially the ...

iphone: memory leak problem: message sent to deallocated instance, why?

Hi guys, here is the problem, today I had a bad time debugging my project, the console said: [CFString release]: message sent to deallocated instance 0x12345 I found the problem, and also, the solution, but I'm not sure why the error happened. -(BOOL) sendRequest:(NSString *) message { //xml -> data NSString *xml = [self toXML:messa...

How can I make a View scrollable in iPhone?

I want to make a long view, for example, 3200*240, whatever. Now, I want to the user display from start from 0,0. When the user scroll right, the x index will increase 320. So, I need a scrollView on top of the UIView to detect the scroll? Also, I need to have a UIScrollViewDelegate, right? thank you. ...

Why the UIScrollViewDelegate is not working?

I have a viewController called "HaveScrollController", and this is something like this: @interface HaveScrollController : UIViewController <UIScrollViewDelegate>{ IBOutlet UIScrollView *scrollView; IBOutlet UIView *firstView; IBOutlet UIView *secondView; IBOutlet UIView *thridView; IBOutlet UIView *fourthView; } @p...

How to response to vertical scroll only on iPhone?

I have a scrollViewAppDelegate, which is have a method called: - (void)scrollViewDidScroll:(UIScrollView *)scrollView How can I detect the vertical scroll only? thank you. ...

reset the image after scrolling in Iphone.

Hi friends... I m scrolling a image using this code- (id)initWithImage:(UIImage *)productImage { if (self = [super init]) { // Custom initialization imageView=[[UIImageView alloc]initWithFrame:CGRectMake(70, 55, 200, 200)]; [imageView setImage:productImage]; scrollView=[[UIScrollView alloc]init]; scrollView.frame...

how to parse XML which contains data in Norwegian language ?

how to parse XML which contains data in Norwegian language ? Does i need any type of encoding with NSParser ? Thanks. ...

reset the image to original size after double tap.

I m doing zooming through this- @interface ScrollViewController : UIScrollView { UIImageView *imageView; } - (id)initwithImage:(UIImage *)image { if (self = [super init]) { // Custom initialization _image=image; imageView=[[UIImageView alloc]initWithFrame:CGRectMake(15, 20, 250, 250)]; [imageView setImage:im...

Apple's UIKit experience versus .net experience

I am new to iPhone programming. Coming from a .net background, I find Apple's UIKit really difficult to use. For example, creating a simple static table view requires me to implement a lot of datasource and delegate methods. In .net, you just add the items and set their properties in Visual Studio, that's it! As my application is getting...

iPhone: How copy text to pasteboard in order to paste into Numbers cells?

I'm trying to copy some tabular data from my app and paste it into a Numbers spreadsheet. The data being copied to the pasteboard is tab-delimited. For example: UIPasteboard *pasteboard = [UIPasteboard generalPasteboard]; pasteboard.string = [NSString stringWithFormat:@"%f\t%f", 1.1, 2.2]; I am expecting it to paste across the Numbe...

How do you make an iOS 4.0 app compatible with iPhone OS 3.1.3?

So, I may have made a mistake in updating my application to iOS 4.0 by wiping my Xcode installation and only installing the 4.0 SDK (I can't even find SDK 3.1.3 in my backups, doh!). I have an app now that has been built with a base SDK of 4.0 and it says in iTunes it requires 4.0 but the only thing I added was the methods -applicationDi...

automatic scroll : how to scroll images one by one in scroll view automatically

hi all. I am making an image application. In that I am moving images one by one. I am also showing image thumbnail at the bottom of screen in scroll view. My problem is when I change the image on touch in main image view, the thumbnail image should highlighted. If again changing the main view image the next thumbnail image should be hi...

Why the dummy text can't load on my cell?

This is the tableView, as you can see, which cell, have two part, the left one, is a leftUIView, and right one, is the rightUIView. The red and green color can display, but the rightLabel I create can't show successfully. What's wrong with my code? Thank you. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath...

uikeyboard return

Hello all, I have one view name:myplay.h and myplay.m my view contain one textfield name txtplay.. It contain one button name btnplay. In button event i want to check that if uikeyboard is open then close it. I know below code - (BOOL)textFieldShouldReturn:(UITextField *)textField { [textField resignFirstResponder]; return TR...

UIView removeFromSuperview removes also subs from subview ?

Hello I would like to know if a removeFromSuperview does remove also subviews from the subview (in case if i have more image-views in a scrollView as Subview....). Thanks ! ...

Accessing SMS Content iPhone

Hi, I want to confirm if it is allowed to access the SMS content programatically. Are developers allowed to access the content of incoming/outgoing SMS's in the iPhone? Can I access the incoming/outgoing sms messages and retrieve the information related to them e.g sms sent by, sent to,body, time etc using my custom built application. ...

iPad sees bluetooth device and won't show onscreen keyboard?

When my iPad is connected to my bluetooth scanner it won't show the keyboard in my app. Anyone know of a work around for something like this? ...

Error about 'kCAGravityLeft" in my Iphone application

When i add any additional FrameWork in My application every time i am getting this type of error. in deep the error means: " _kCAGravityLeft", reference from: _kCAGravityLeft$non_lazy_prt in rssView.o. Please give solution if any. ...