iphone

By Clicking an html link i want to open that url in browse?

I am opening an html page in web view and By Clicking an html link i want to open the given link in to web browser and my application should close. ...

iPhone SDK - Implement Tap to Scroll feature on ImageScrollView

SDK: xCode 3.2 Device: iPhone 3GS OS 3.13 / iPad Case: In Apple Sample Library [ScrollViewSuite]. The [2_Autoscroll] project. In [ThumbImageView], We can drag and drop to scroll the view. So that we can see any menu item by touch the screen and do moving. How to implement this feature in [TagDetectingImageView] ? I have try to co...

Should I talk about "pixels" when talking about the size of views in iPhone OS?

Actually, iPhone OS has an resolution independent measurement for view sizes. It's not really pixels, isn't it? For example, I could make a view 10.55f width, which is blended into fractional pixels then. But what's the name of that "unit" actually. Can we talk about "Units"? Or is that too generic or even wrong? Can we talk about "Unit...

How to use the SQLITE3 LIKE statement

hi all, I have problems running a dynamic LIKE statement in my project: this query works like a charm and returns all items with a 't' in there name: const char *sql = "select * from bbc_ipad_v1_node where name LIKE '%%t%%'"; When I try to do this dynamically I do not get erros, but just an empty result. It seems that the value is ...

Problem parsing a soap response (iphone / touchxml)

Hi I make a webservice and it works, the problem is with the webservice response. I have this xml (and i want to parse with touchxml), the problem is with touchxml that it founds two xml, one inside the other and it make crash. Here is my question, how i can parse this xml? how i can remove all the stuff like soap-env, xmlns .... <?xml ...

Playing video in a Customview like iPad feature

Hi, When we call MPMoviePlayerController.play method, the movie player is opened and the video is played in a separate full screen. is it possible to play a video in a custom view, that is I have an image added on a view, when this image is clicked, the image has to be removed and the video has to play there itself as the feature in iPa...

populating section titles from an array

is this possible to do , or do i have to do it all manually with if statements? something like return [sectionTitles objectAtIndex:indexPath.section]; Thanks Richard ...

dropdown box in iphone

Hi. i am very new to iphone development. I want to make a dropdown list from scratch. Can anyone plz tell me how to do so. thanx in advance ...

Problem with sharing variables between views - missing something?

Hi there I know im missing something but my friend and I can figure out what. Firstly.. I have two .hs and .ms that I'd like to share data between - two view controllers In the first .h i have this - that makes the variables and properties them //top half of .h //Passing to Submit Page NSMutableString *messageString; NSInteger t...

Calling view method on timer?

I have setup a view and I want to cycle the color of some text on that view using a timer. Is there a timer method for a view that gets called (or I can setup to get called) on a regular basis? ...

What is .DS_Store

Hello everyone I hope to list all files in document directory using codes below for(NSString *path in [manager contentsOfDirectoryAtPath:[self appDelegate].gCurrentPath_AppDelegate error:nil]) { NSDictionary *modData=[manager attributesOfItemAtPath: ...

does the separator contribute to the total hight of an UITableView?

If I had 1000 rows, would an single-line separator make the table view bigger in height? Or is it an overlay on a cell only? ...

How to intercept UIScrollView contentOffset changes from UITableView subclass?

Actually, a UITableView is a UIScrollView (inherits from that). Now, I made a UITableView subclass and added this line of code to it: - (void)scrollViewDidScroll:(UIScrollView *)scrollView { NSLog(@"contentOffset: %@", NSStringFromCGPoint(self.contentOffset)); } For some reason this is never called when I scroll the table view. Bu...

NSOperation and UIKit problem

Hello guys! I am doing my download with an object which was inherited from NSOperation. I have read the documentation and when my operation finished I must call the [self.delegate performSelectorOnMainThread:@selector(operationDidFinish:) withObject:self waitUntilDone:YES]; method. It needs to be called on the main thread, because th...

UIView Animation: PartialCurl ...bug during rotate?

Hello all, a short question. I've created an app for the iPad, much like a utility app for the iPhone (one mainView, one flipSideView). The animation between them is UIModalTransitionStylePartialCurl. shouldAutorotateToInterfaceOrientation is returning YES. If I rotate the device BEFORE entering the FlipSide, everything is okay and the...

iPhone private APIs

How to add private APIs and frameworks to an iPhone App. Like Apple80211. ...

Darkening UIView while flipping over using UIViewAnimationTransitionFlipFromRight

I'm using a standard animation block to flip over from one view to another, like this: [UIView beginAnimations:@"FlipAnimation" context:self]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:self.view cache:NO]; [UIView setAnimationBeginsFromCurrentState:NO]; [containerView exchangeSubviewAtIndex:1 withSubv...

Iphone resizing images

Hi all, As far as I have read, scaling a big image to draw it on the iPhone is very slow [1]. I really need to do it fast and I wonder why zoom goes so fast on the iPhone while code scaling is so slow. Any idea? By the way, any fast way to do scaling? [1] For instance: http://stackoverflow.com/questions/1282830/uiimagepickercontroller-...

iPhone: How to get each item in an array (for UITableview) to "link" to another table view.

Hi there, I have a table on my iPhone application. It works—it gets data from an array and displays it on the application. I now want to be able to add some navigation functionality to each item of the array (i.e. each item on the table). How would I do this? My current Objective-C for the array: - (void)viewDidLoad { arryClientSide ...

iPhone internationalization: falling back to a default language

Consider the following situation: We have two Localizable.string files, one in en.lproj and one in it.lproj When the user switches to English or Italian, the proper localized string is loaded using NSLocalizedString(@"keyword", nil) If one of the files is missing the keyword, the string is not retrieved Is there any way to make this ...