iphone

the bundle is invalid. an application targeting the iphone device family may not require a iphone os deployment target of 3.2

Hey. I'm making an iphone only app, so far I have been able to share my app via ad-hoc distributions, and run it both in my simulator and my devices. But now that I'm finished, I can't upload my build to the store because of this error: "The bundle is invalid. an application targeting the iphone device family may not require a iphone o...

popViewController doesnt seem to work with UIView animations

Hello I have the following code, which does a nice animation when pushing a new view controller. [UIView beginAnimations:@"animation" context:nil]; [UIView setAnimationDuration:0.5]; [[self navigationController] pushViewController:details animated:NO]; [UIView setAnimationTransition:UIViewAnimationTransitionFlipFromLeft forView:self.na...

Is it possible to use iText port for C# in iPad/iPhone projects?

So question is how to import iText C# port in iPhone application development? ...

How to change all the strings in an iphone application with respective selected language in settings?

Hi Guys, I need help from you, I need to display all the text, labels , strings and what ever text is showing to user in the iphone application with respective selected language in settings of iphone. for example user selects German or French in settings of iPhone language, then my application should provide or view the details in that...

How to compare array element?

Suppose I have an array having elements "am","john","rosa","freedom". I want to compare these elements and result would be the word and the size of the longest word. I am using objective C. ...

CoreGraphics slower on iPhone4 than on 3G/3GS

I have a chart drawn with CoreGraphics. This chart can be scrolled horizontally and it's drawn as we scroll it. The problem is that on 3G/3GS the speed and performance of the scroll is good but on iPhone 4 is slower than expected. I suppose this is a issue related to the higher resolution of the iPhone 4. Is that correct? How can I i...

What are the two best iphone and blackberry development books you have read?

I want to hit the ground running at a new firm. I am seasoned developer in Java/C so will pick up things fast. Need to be able to follow tutorials. I can do either video or plain text. Need your expert advice in recommending a good book to me. Thank You for your time. ...

UITableView "Scroll down to update"

What is the easiest way to implement "Scroll down to update" functionality like in facebook "News feed" when you scroll down the news from top you see an update indicator and it update the news accordingly. Thanks in advance ...

how to take a screenshot of the iPhone programmatically?

Is it possible in objective C that we can take the screen shot in objective c and stored this image in UIImage. ...

Can't adjust volume on iOS4 using AudioToolbox/AudioServices.h

Hi, I am unable to adjust volume of sounds in my app when testing on new iPhone 4 (tried two devices) it works on an iPad and my colleague just told me that on 3Gs with iOS 4 the volume goes down when trying to increase ... that's something doesn't make sense at all. I am using AudioToolbox/AudioServices.h to just play short sounds in ...

how to refresh an oauth token when using the Facebook iPhone SDK

I'm using the Facebook SDK for iOS in my app: http://github.com/facebook/facebook-ios-sdk The oAuth token expires after about 2 hours. How can I "refresh" the oAuth token without having to call the [Facebook authorize...] method again - which shows an empty Facebook dialog briefly if the user had previously logged in? What I want ...

Text as Hyperlink in objective c

Hi, I have a text label with the text set as Contact Us.. When user taps on this label it should launch safari to open the web page.My doubt is how to make Contact Us as hyperlink.Now I can't modify my code to include a UIWebView..Please help me guys..I am in final stages of my project..If possible please help me with sample code..thanks...

Determine if non-numerical characters have been pasted into UITextField

For a specialized calculator I would like to allow copy / paste for a textfield which is meant for numerical values only. So, only numerical characters should be actually pasted or the pasted string should be rejected if it contains non-numerical characters. I was thinking about using UITextFieldDelegates textField:shouldChangeCharacter...

AVAudioRecorder File won't play except with VLC

Ok. I think I'm missing something here and I'm new to Core Audio but I have scoured the Apple documents and the rest of the web to no avail. I've also posted this same question to the apple dev forums and got no replies. I'm hoping the StackOverflow community can help me out. I'm recording audio and playing it back just fine using AVAud...

resignFirstResponder causing EXC_BAD_ACCESS

Hi, I've got a UITextField on UITableViewCell, and a button on another cell. I click on UITextField (keyboard appears). UITextField has the following method called: - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { NSLog(@"yes, it's being called"); owner.activeTextField = textField; return YES; }; Where owner....

Subclassing UINavigationBar in Xcode

Hi, I am wanting to apply a custom alpha value to the title of the UINavigationBar. The UINavigationBar is part of the UINavigationController and the UINavigationController is part of a UITabBarController. Edit: Here is a picture of what I created using a UIToolbar and a UILabel. I want to do the same using the title in the UINavigatio...

problem in tabBar Controller with more than five tabBar items

I am facing few problems while using tabBar with navigation controllers.Each tabBar item is associated with a separate navigation controller.Problems are listed as follows: 1.There are more than five tabBar items in my tabBar so a more tabBar item comes by default.Now when i tap the more tabBar item the remaining items come in a tablevi...

Shark does not show function names

Hello, I want to use shark to profile my application(I used it before and it worked fine), but now it does not show any function name. I have only Unknown Library and address[unknown] in symbol column. Some project parts are static libraries(compiled and linked in same project, with debug symbols on). Function names from standard lib ...

Best way to allow text edit completion on a complex iPhone UI

I have a somewhat complex iOS view hierarchy. One piece of text is an editable UITextField. When the user touches it, it becomes first responder, and is editable. Here's the rub, though: Best practice should be that a touch anywhere outside the edit control causes it to resign first responder and end editing. What's the best way of acco...

How to use Boost uBLAS C++ library in an iPhone project?

I want to use Boost library in my iPhone project, specifically only boost::numeric::ublas. I managed to build static libraries for boost in order to link them in my iPhone project. However, when I look at those .a libraries I can't find one that's related to ublas (I tried ./bootstrap.sh --with-libraries=ublas in terminal but no luck). D...