iphone

CFReadStreamRef and size of bytes available

hai all, I'm trying to implement a Streaming music Player using iphone sdk, based on the sample code by Matt Gallagher ( http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html) now i would like to know how can i get the number of bytes available in the CFReadStreamRef . After a long search i got the code to find t...

how to make horizontal scroll view of images .?

hi, i am new developer on iphone and i am working on a project. the problem i am having is that i have no idea about how to create a horizontal scroll view of images. what i want is that when i click on the table view containing image thumbs, i should view the same image in a much larger size and scroll the other images that are on the l...

In iphone development, is it possible to evaluate a javascript string using a webView in which a PDF is loaded?

I have loaded a PDF into UIWebView. Now i want to search for strings in that pdf. So I used a string which contains JS steps(used to highlight that specific string) and evaluated it with the webView object like this. But no result was obtained .It was as if nothing had been done. Dont the JS evaluation work on a pdf loaded into a webView...

CGrectContainPoints & Touches queries

Im getting straight to the point. I have static coordinates stored as array and i want to compare this coordinates with user touch. //touch handling UITouch *touch = [[event allTouches] anyObject]; CGPoint touchPoint = [touch locationInView:touch.view]; //comparing touches if (CGRectContainsPoint((CGRectMake(x1, y1, w, h)) , touchPo...

iPhone: change Navigation Bar title color and back button title color

hi all, i want to change the NavigationItem title color. Also i want to the change the text color of back button of navigation bar. Please suggest how can i do this task? i am using iPhone Os sdk 3.1.2 ...

Using FFMPEG library with iPhone SDK for video encoding

Hi, I need to encode several pictures shot by the iphone camera into a mp4 video file and I know FFMPEG can do this (the application TimeLapser and ReelMoments do it already). I plan to use this in my app iMotion (available in the appstore). I successfully install and compile the ffmpeg for the iphone SDK with this link : http://lists....

MFmailcomposer 's send button is not disabled...?

hi, i am using MFMailcomposer .send button is disabled when "To: " field is empty in simulator. but in device when i run that same application , send button is not disabled...i clicked, "the mail has sent" result has been shown..any help? ...

Can Iphone restore the state of app after [[UIApplication sharedApplication] openURL:[NSURL URLWithString:call_url]];

In my Iphone app I give a button when pressed calls a specific number using the following function call and uses the native iphone call app. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:call_url]]; where call_url is of the form tel:// Once the call is done, is there a way to restore and open my Iphone App as it was ...

Should I rely on Clang Static Analyser or Instruments ?

Hello all , I am working on iPhone application.. For the purpose of finding memory leaks I have started the application with the instruments which gave me lots of leaks . which i was unable to understand then in a forum somewhere I have read that the instruments gives spurious leaks sometime so I should start by the Static analysis . ...

iPhone - phone goes to sleep even if idleTimerDisabled is YES

Hi I am using this in my appdelegate's applicationDidFinishLaunching: method to make sure the iPhone doesn't go to sleep during the time the app is open [application setIdleTimerDisabled:YES]; It works great on all screens but on one of the screens the iPhone goes to sleep. I could not figure out how to reproduce this and it seems to...

iPhone + UINavigationBar

Hello, I have UINavigationController in my application, at some point I hide NavigationBar using following code: self.navigationController.navigationBarHidden = YES; Because of this my View is disturbed and there is a gap displayed at the bottom. ...

adding segmented control with in the Navigation Bar

can anybody help with the code on how to add segmented control within the navigation bar....i have seen it on some applications and want to implement it thanks ...

UIWebView locally save images and just load html

Hello, i want to load just the html from the web and show the images from the local resource. This helped me a lot, but is the path to the resource on every device the same? Or does it depend on an installation path or similar? http://stackoverflow.com/questions/1577576/show-content-with-uiwebview-on-the-iphone ...

How to check if my string starts with uppercase character

Hi, I'm working with cocoa on the iPhone and I'm looking for some method like: NSString *s = @"Hello"; [s isStringStartsWithUpperCaseCharacter] -(BOOL) isStringStartsWithUpperCaseCharacter; The first letter of the string may be non ASCII letter like: Á, Ç, Ê... Is there some method which can helps me? I saw in the documentation that...

Recursive adding self.view to self.view?

I need add to my active main view a new subview. And this subview should be with all content which placed on main view. Subview has a frame = view.frame / 2. I trying implement some solutions (below), but there are no results (( First off CGRect frame = CGRectMake(100, 140, 250, 250); UIView *view = [self.view copy]; view.fram...

get the data from the database and display in the UITextField

how to i connect to mysql database and execute my query and display in iphone application may be in tabular view ..but not in any webview (safari) ...

how to trigger function in view from viewcontroller viewdidload method - objective c - iphone

Hi everyone, I'm trying to trigger a function in a view class, from the view controller once it has finished loading. Currently the code I'm trying to run is this GameView *gameView = (GameView *)[[UIView sharedApplication] delegate]; [gameView loadText]; I've borrowed this code from other code which triggers functions on the appde...

Changing Data in a Plist

Hey, alright so I have a .plist that looks like; <plist version="1.0"> <dict> <key>Item 0</key> <dict> <key>Name</key> <string>Jero</string> <key>Initiative</key> <integer>0</integer> <key>EditThis</key> <false/> </dict> </dict> </plist> In the app I have it so that when one of the rows (The data is put in a UITableView) is ...

Is UIWebView's JavaScript evaluator able to use the JS's RegExp object?

There is no default RegEx library on the iPhone. Is it ok if I use UIWebView's stringByEvaluatingJavaScriptFromString to evaluate a JavaScript string that actually uses the RegExp object to evaluate an expression? Is this supported on the iPhone? ...

Relative Height of UITableview

In RootViewController am using a UITableView for displaying the content of data. In the didSelectRowAtIndexPath method, I am calling another view controller (DetailViewController) to display detailed data. For displaying this detailed data I am using a UITableview in the DetailViewController also. This table contains one section and only...