ios4

How to make Xcode 3.2.3 build a specfic architecture?

I'm getting the following error when including static libraries: missing required architecture i386 in file This worked 30 seconds previously, and only failed when I upgraded to Xcode 3.2.3. I've used "file" command to check - and, yes, XCode is building completely the wrong architecture (armv6 + armv7 instead of i386). This se...

RTSP Streaming on ios 4.0?

Hello guys, I am working on an application that runs the live video taken from the server and play it on iphone os4.0 . When I run the application on iOS 4.0,, after few seconds it gets paused, even if i play it it wont work any more. I tried a lot but it doesn't worked. But it is clearly stated in iOS 4.0 documentation that iOS 4.0 su...

Toolbar Tint Colour Change Not changing colour of button in iOS 4 Xcode

Hi. I'm trying to make my app compatible with iOS 4 Multitasking so it stays open when the home button is pressed. At one point, a button is pressed and it opens a new view and changes the tint colour of a toolbar depending on the contents of a txt file automatically. The toolbar also has a button that is linked to an IBAction (it close...

Load audio file ASAsset

How can I load a file on an ASAsset, add metadata to it and export it? Also, how may I crop it? ...

How to get keyboard to disappear?

I have a text field that is being shown in a UITableViewCell and I want to be able to hide the keyboard when the user touches anywhere else on the screen aside from the text field. I know about [field resignFirstResponder];, but I don't know how to intercept touches on the background of the UITableView in order to call "resignFirstRespon...

Retina icons (@2x) aren't being used when images are specified in code

I place a play.png image onto my view. When the view initially loads, the iPhone 4 grabs the corresponding [email protected] file and it looks great. However, when I tap the play button my code swaps it out for the pause.png file. Then, when I tap the pause.png to bring back the play.png it uses the original play.png file (not the @2x version ...

Can an iPad app directly launch another app?

Hello, I was wondering if it was possible to launch an iPad app directly from within another app. For example, could I write a login page that takes you too a desktop type page where you can select an app to run, and then launch that app as say, a new thread? I am not sure this is possible, I am just curious about the capabilities of ...

How to have UISearchBar scope bar always visible?

Hi everyone. Here's my latest problem with the iPhone SDK. I've got a UISearchBar and its delegate all set up. Also, when I load my view, I call self.searchDisplayController.searchBar.showsScopeBar = YES; That way, when my view is first presented, I see the scope bar, as expected. But if touch inside the search bar and then outside ...

Respond to applicationWillEnterForeground in a UIView

I have a UITableView that loads remote data from the network. I have logic in viewWillAppear to handle refreshing the data when needed based on state changes and a TTL for the data set. This works fine within an app "session" but isn't effective when the user exits the app to the background and later restores it directly to this view. W...

Why does Apple recommend using a runloop over GCD for fetching multiple images?

Is it a good idea to load images (1 block each) through Grand Central Dispatch in iOS 4.0? (for use in a UITableView) Why is a runloop preferred by Apple, as illustrated in the WWDC video sessions 207 and 208? ...

Does Apple provides any library or API to manipulate the CalDAV?

Hi, everyone, I want to ask a question about the iPhone application. I am going to write a program which is related to a calendar function. I want to use the CalDAV to do this. However, I am not familiar with the iOS environment. Does the apple provides any library or API for the developers to write the program by manipulating the CalDA...

How to subclass UITableView?

I honestly don't know how to subclass a UITableView. I'm super confused and looking for whatever help I can get. How do I go about "subclassing" a UITableView? Reason I need to do it is because I need for the table to respond to touches on the background so that keyboards can be hidden. I've tried googling but couldn't find anything. Any...

How can I load an image in my resources folder?

I have an image in my iPhone Project. It's a PNG and I can set the background in Interface Builder but I want to do this programatically. NSLog(@"Before %@", myEasterEgg); uiImageBackground.backgroundColor = [UIColor purpleColor]; myEasterEgg = [myEasterEgg stringByAppendingString:@"5"]; NSLog(@"After %@", myEasterEgg); if (CFStringComp...

Linux developement towards iOS4-like touch-screen tablet

Is there any project or effort in the Linux community trying to develop something similar to Apple's iPad or iOS4? Or it is trivial to emulate the same touch-screen experience with Linux? I ask this question because I found iPad or iPhone UI experience is very friendly to young children and if possible could there be some linux-based tab...

Create a view like contact info in ios4

Hello, I would like to create a view like contacts info in new ios4. I've been looking for a document, source code(this is better) or something else but I wasn't lucky. Please if somebody can help me I will be very very happy, I need to show a picture, some fields like textbox and description field. Thanks in advance ...

UITableView not refreshing appropriately

I have a selectedArray defined as a property in my file that holds which cells have been "checked". When displaying the cell I check whether or not the current cell value is in the selectedArray, and if it is, I display the UITableViewCellAccessoryCheckmark as the table's Accessory View. The only problem is, when the user searches for t...

iOS 4: Remote controls for background audio

I'm currently attempting to set up background audio for an app I'm developing for iOS 4. The app doesn't have a dedicated music player view controller, however, unlike other background audio apps such as Pandora, which makes the task a bit more confusing. I've set the appropriate Info.plist settings correctly and have an AVAudioPlayer o...

iOS4: UIImagePickerController behaving weirdly when presented modally

I'm trying to present a UIImagePickerController from a UITableViewController subclass using the following code: UIImagePickerController *picker = [[UIImagePickerController alloc] init]; if(library) picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary; else picker.sourceType = UIImagePickerControllerSourceTypeCamera;...

Entering background on iOS4 with active network stream

Following this question, the same is true for background networking. The documentation is very short-spoken on how to keep a network connection up and running while the application is in the background with the new VoIP API. The documentation says to add the VoIP string to the info.plist, set your signaling channel to VoIP with CFRead...

Log out the user on the iOS 4 with HTTPBasicAuthentication

Hi there! I am programming an iPhone application. My (existing) web-application uses Ruby on Rails (2.3.2) to serve the data. Ruby on Rails backend uses restful-authentication gem to authenticate the users. To get user data from the server to the iPhone app I use HTTPRiot framework and authenticate user with HTTPBasicAuthentication. N...