iphone

Allow UIWebView to load http://localhost:port/path URIs without an Internet connection

I am working on an iPad app which has an embedded HTTP server listening on a high port, and I am loading pages from this HTTP server using a UIWebView. For the functionality of the app, it is important that this works when no network connection is available. The UIWebView is loading URLs of the form http://localhost:port/path When I d...

Example of how to make a data factory for core data access in cocoa (iPhone)?

I have been slowly learning iPhone development and seem to keep hitting walls where I can't figure out how to do what I want to do the right way :( Basically, I want a class that handles all interactions with the data layer, for example, getting a mutable array of some list of objects from the data store. This is pretty trivial in othe...

Record video with custom sound on iPhone?

Is it possible to record a video on iPhone but with some custom sound instead of the one captured by microphone? ...

Getting an error when calling an IBAction from a button click inside a xib

i am having an issue where when i call an IBaction from a certain viewcontroller the app crashes, but i can get the desired result elsewhere. basically i have a navigationcontroller buried in a tab bar controller. if i call an IBActions from the first view of the navigationcontroller it works fine, but if i create a view with an initWi...

Navigation Based Template? Iphone app like Facebook App

Hi All, Im creating my first iphone app and need some advice. Im basically developing a simple social app similar to the facebook iphone app. Should I start with the Navigation Template? Or am i totally on the wrong path? Thanks ...

caldav on iphone

Is there a way to interact with a caldav server with the iPhone sdk. ...

How to determine number of objects in one-to-many relationship in CoreData

So, I've got a one-to-many relationship of Companies to Employees in CoreData (using a SQLite backend on iOS, if that's relevant). I want to create a predicate that only returns Companies that have 0 Employees associated with them. I could do it by getting all the Companies and iterating over them, but that would be (I assume) much slowe...

Best method to toggle the camera's flash on iOS 4?

What is the best method to toggle on/off an iPhone 4's camera flash? ...

[iPhone] Using UIImagePickerController with UINavigationController

So I have a UINavigationController that pushes a UITableViewController from the rootViewController. From the UITableViewController, I want a UIImagePickerController to be pushed when I click a certain cell. How would I get the navigation controller to display the image picker? ...

[iPhone] how to link to iBook?

Hey guys I am making an app for an author (patrick rothfuss) and i would like to be able to link to his book in the itunes store by clicking a ui button. while I think i can set up the button and everything myself, I can't seem to find out what the link is. anyone have any idea how to do this? Thanks ...

How to programmatically add text to a UIView

I have a UIView that I'd like to add several bits of text to. I have used a UITextView but I think that's overkill as it doesn't need to be editable. I thought about using a UILabel or a UITextField, but I don't see how you tell the superview where to position the UILabel or UITextField within itself. I want the lowest footprint objec...

can we stream WAV audio format

Hello, Can we stream live audio which is in WAV format from iPhone to server? ...

CATransition how to clip to bounds of UIView?

I'm using CATransition to slide subviews of UIView. But the problem is that the CATransition always appears in whole screen. And it looks like a mess because I have another UI elements in window that become overlapped while transitioning. How can I restrict frame of transition by UIView frame? I tried to set clipToBounds of my UIView to ...

How the Text readjusts when an image appears?

In some news applications when it loads it shows a list of articles. When we click on an article, it goes to its detailed page. In the detailed page 1st there will be only the text related to the article. But suddenly an image comes(related to the article) on the top left corner and the text re-aligns itself to contain the image. Wht ar...

Problem in fetching from core data to array

In my core date in the entity name called Event and in that there is an attribute called "name". I want to fetch all the values of term from coredata to an nsarray. I used the below code and it is not working. Anybody please helpp. NSFetchRequest *request = [[NSFetchRequest alloc] init]; [request setEntity:[NSEntityDescription entityFo...

Cocoa-Touch: Can I have multiple views per view-controller, or specify bounds of a uiview?

Here's a hypothetical question: Say I subclass a UIView that draws a triangle and I want this triangle uiview to part of the screen. And then say I subclass another UIView that draws a rectangle and I want the rectangle to take part of the screen. In other words: 1) Can a view-controller have multiple views simultaneously being drawn ...

How can I create some view over UIKeyBoard?

I fill information then tap "Done" button for doing some process and show loading view for waiting. I need loading view is over every view, but How can I do? Thanks for adviser. Here is my image (I'm new in here, so I can't post image) http://www.freeimagehosting.net/image.php?62e2584aea.png ...

select video from video library in iPhone

Hi, I am developing an application for iPhone which needs to select some video from video library.How can i access the video library like uiimageviewcontroller.Thanks in advance ...

How could I write a program for my iPod touch?

I don't want to register as Apple Developer and pay the Apple company before I know how to write a single line of code for iPod. How could I start writing a program for my iPod? Is there a free way to write my own program and load it into my own iPod without paying the Apple company? It's so ridiculous that I bought my own iPod but cann...

2 iPhone apps messed up when deploy to iPhone.

I have 2 iPhone apps and want to deploy to iphone and somehow the second app rewrote the first app on my iPhone. The second app project was copied from the first app and I made some changes including renaming the app name etc. I believe there might be some files messed up due to the shared path. Can anyone shed some light on this issu...