iphone-sdk-4.0

UIViewController and UITabBARController

When I first launch the apps, I want it not to show the tab bar. Then after the user logins, it brings the tab bar. So how can I do this? Do I just hide the tab bar at first place then after the login succeed I will show the tab bar or I should have a UITabBarController inside the UIViewController for the first time? ...

Replace char with especial shape

Does anybody have any idea on how to replace char with especial shape?for example if i wright 'S' replace it with small rectangular like below image ...

Hi-light text when audio file playing with corresponding words.

Hi all, I am developing one iphone application which is include the audio to text conversion. The requirement is i have an audio file, while playing audio file the need to hi light text with corresponding word audio file. Please anybody help me out of this issue. Thanks in advance. Vulvaji. ...

Play video's audio track when enter background?

I'm using mpmovieplayer to play video on ios 4, and I want to keep the audio playing when my app enter background, but it doesn't work. I thing it's because video player use GPU to render video on screen and this is not allowed by apple when app enter background. So, is there any way to do that? There are some apps have this feature, a...

How to add Custom EditingAccessoryView for UITableView?

Hi all, i want to add custom EditingAccessoryView in cell, when user swipe in place of delete button i want to show my custom view. ...

iPhone Device Orientation Bug

Hi all, I'm stuck since few days with a weird issue. I've been looking for a solution on Google, and I don't see anyone having the same bug. My application doesn't want to rotate. I'm using several viewController, implemented the shouldAutoRotateToOrientation method but the view controllers don't want to rotate. I've done the debug, b...

How to navigate to next view through only one section of the table?

Hi all, I have one tableview having two sections. I want to navigate to next view by clicking on only one section. Other section should not go to the next page. can anyone please help me for this? ...

Adding a button in the bottom of a TableView

Hi guys. I'm trying to add a button on the bottom of a TableView, without any success. The idea isn't to use the tableFooterView property, as that doesn't show the button in a fixed position. My idea is more along the lines of the Facebook application's Notifications bar on the bottom. I'm using Three20. Any pointers on how I can ac...

How to get warnings when using 4.x only APIs when the base SDK is 3.x

Hi Guys, While i'm careful, there have been a few times when i have used iOS 4.x apis by mistake that have caused odd behaviour on the older devices. Is there anyway to get the compiler to flag their usage so i'm alerted when i have done so. Many thanks as always ...

Possible to set the Language / Local of Map in UIMapView ?

I am writing an application that uses UIMapView. I would like to know whether it is possible to set the language / locale of the street name on the Map ? i.e. If the current System Language is Chinese Traditional and the Map is shown in English. ...

Regular expression for numbers

Hi, I need a regular expression to detect at least one number in a string. Other characters can be anything. Please help me to implement this in objective C. Regards, Dilshan ...

How do I add an entry to a plist?

I want to add a dictionary pair into an existing plist. I want to add a Boolean value. So how do I add it to an existing plist? ...

facebook graph API and parsing results in objective-C

I am calling this: facebook requestWithGraphPath:@"me/friends" andDelegate:self] Now I am confused on what facbook returns to me in the delegate? How should I parse this in the (void) request:(FBRequest*) request didLoad:(id) result method? Is it returned as a dictionary? ...

How can i integrate Barcode scanner in my application?

Hi! i have sample code of Barcode Scanner but when i install it in my iPhone 2G which contains Version 3.1.3 gives me the below error message.i have taken the code from this link:http://code.google.com/p/zxing/downloads/list dyld: Library not loaded: /System/Library/Frameworks/CoreVideo.framework/CoreVideo Referenced from: /var/mobile...

Error that occurs in ios4.1 (*** ERROR: FigCreateCGImageFromJPEG returned -12905. Input (null) was 499992 bytes.)!

*** ERROR: FigCreateCGImageFromJPEG returned -12905. Input (null) was 499992 bytes. I get a error in ios4.1 whenever i use the UIImagePicker [ just after taking a snap]. My code is a simple UIImagePickerController *c=[[UIImagePickerController alloc]init]; c.delegate=self; c.sourceType=UIImagePickerControllerSourceTypeCamera; [self...

How to disable selection for some rows and not for other in UITableview?

Here is my code: switch (indexPath.section) { case Job_SECTION: cell.accessoryType = UITableViewCellAccessoryNone; break; case Description_SECTION: cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; break; default: break; } if (indexPath.section == 0) { cell.selectionStyle = UITableViewCellSelectionStyleNone; } ...

Retrieve Int from NSUserDefaults MultiValue

I would like to retrieve an Int value from NSUserDefaults, but it always comes up as 0. This is how my settings bundle looks: Type: String: PSMultiValueSpecifier Title: String: Timer Key: String: timerValue DefaultValue: Number: 4 Titles: Array: 5 Number Items 1-5 Values: Array: 5 Number It...

How to add Normal viewcontroller after navigation controller in windows based application?

In my windows based applicaton, after login screen and registration page I added navigation controller for next two views. After pressing button present on second navigation window,again i want normal view controller and not navigation. But Its giving me navigation window with back button which takes me to second navigation window. Can ...

iPhone app - Error handling when communicating with the server

Hi, My iPhone application continuously communicate with a web server. So in case of a connection lost or the server is not reachable is there any specific precautions we should do? I know that we have to show the user about the communication failure. If so is there any acceptable way of showing errors to the user? Im more concentrated o...

Multisampling on iPad

Hi, all ! Is it possible to use multisampling on iPad ? Apple's documentation say: "iOS4.0 and later devices", but all tutorials in inet says: "iPhone XX, IPAD" I can't run my app under 3.2 sdk with multisampling (base sdk 4.1, deployment 3.2) Is it possible ? Thanks, ...