iphone

Saving the NSManagedObjectID from one entity as a property on a different Entity?

Hi I have a Core Data Entity that needs to hold onto the NSManagedObjectID of some other Entity. To do so I was considering converting the ObjectID to a string that is an approved type of an NSManagedObject attribute. I can read from the documentation that I can get a URI representation of the ID by: NSURL *uriID = [[myEntity objectID...

Is it possible, in principle, for an Android device to interface with an iPhone over Bluetooth/GameKit?

(I am not interested in pure theory, but as a practical near or mid-term possibility, say within 12-24 months.) As a developer familiar with (but not specializing in) two major smartphone platforms, should I expect an Android library to come out which can spoof itself onto an iPhone app's GameKit-based network. It seems reasonable that ...

I'm trying to program a unique app, and use voice command to trigger specific functions within the app

If anyone can help me with this, I'd be eternally in their debt. Without getting bogged down in details, I'm trying to program an app so that, for instance, while the application is currently launched, if I say the words, "activate function A", a specific function which already exists in my app, is activated. Have I explained myself ...

Change the table View when segmented Control is tapped. Exactly as in APPSTORE app. How to do it?

I am having a SampleViewController in which a segmentedControl is added at the top below nav bar(not inside it).Now below the segmentedControl i want a tableView which loads from another class CommonTableViewController. When a segment is tapped the a new tableView from same CommonTableViewController should be loaded. How can it be done? ...

How to cover also the UIStatusBar with UIView when i cover all the screen with the UIView? (iPhone)

How to cover also the UIStatusBar with UIView when i cover all the screen with the UIView? thank guys. ...

Can I use a custom class for holding data of an attribute in Core Data?

Apple is giving the example, that I could make a MyColor class for holding color data, and use this with an NSAttributeDescription object by calling the -setAttributeValueClassName: method. But what's missing there is this: How's MyColor persistet? And what do I have to provide in -setAttributeType: when I do that? There's no type like ...

How to run my programm to process email attachment of specified type on iPhone OS

I need to run my iPhone application when user gets email with attachment of specified type and process it. For example "some.jpg". How? ...

How do you calculate the day of the year for a specific date in Objective C

This is something I found myself spending hours to figure out and therefor wants to share with you. So the question was, How do i determine the day of the year for a specific date? e.g. January 15 is the 15'th day and December 31 is the 365'th day when it's not leap year. ...

Streaming and playing an MP3 stream. .mp3 URL format

Hello, I used the sample code from http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html. it runs OK with default URL. But when I replace with my URL "http://dl.mp3.kapsule.info/fsfsdfdsfdserwrwq3/fc90613208cc3f16ae6d6ba05d21880c/4b5244f0/b/7e/b7e80afa18d06fdd3dd9f9fa44b51fc0.mp3?filename=Every-Day-I-Love-You.mp3", ...

FBConnect (IPHONE) , custom publish dialog

Hi all, is possible custominzing the FBdialog??, i have already modify the attachment on the dialog when the user wants to publish a post; but i need to make hidden the textfield that the dialog presents...there is a way to access to this property or it's just a webView that load a page from facebook's server? sorry for my bad english!...

What dies it mean that a fetched property is static and not dynamically updating itself?

Apple says in the NSFetchedPropertyDescription class reference: Note, however, that unlike a playlist a fetched property is static—it does not dynamically update itself as objects in the destination entity change. Nice, but what exactly does that mean: static property? Not dynamically updating in the destination entity chan...

make UIImage conform to the NSCopying protocol

Hello, The question is quite simple, I need to have an UIImage conform to NSCopying protocol but I have absolutely no idea on where to start to achieve this. Do you have any pointer to help me? Thanks in advance ...

Manipulating AudioQueueBuffer audio data results in noise.

I try to implement an iPhone sound processing app using SpeakHere sample app as a starting point. The app involves manipulating buffered audio samples during playback. When I multiply the samples by a fractional number (0.9 for instance) I get noise as a result. The strangest thing about it is that when multiplying samples by whole numbe...

download a .mp3 file on Website with NSSURLConnection

Hello, I want to download a .mp3 file on a Website with NSSURLConnection, however only the first 357 bytes of the 2.5 mb file are downloaded. I tried to increase the buffer size and the timeout of the request, but I still can't get the entire .mp3 file on the iPhone. This URL of the file is: http://dl.mp3.kapsule.info/fsfsdfdsfdserwrw...

How to deal with image resizing for different orientations

I've been following this excellent resource here: http://stackoverflow.com/questions/1282830/uiimagepickercontroller-uiimage-memory-and-more and based some of my code off it. But can't seem to get my head around how to accomplish what I want to do. Basically, I want to take any image from the iPhone (landscape or portrait) and display ...

Is it possible to access /private/var/root/Media/DCIM/100APPLE on a non jailbroken phone?

Is it possible to access /private/var/root/Media/DCIM/100APPLE through iphone app on a non jailbroken iphone. will apple allow to do this? ...

How to dynamically adjust method names and calls with Objective-C

Hello. I am trying to condense my code for a method and was wondering how I would achieve the following: I have a bunch of variables that differ only in their number such as: int intVariable1 int intVariable2 UILabel Label1 UILabel Label2 BOOL bool1 BOOL bool2 etc. So I want to call a method and pass in an int. That int would dete...

Is there a common language for cell phone software development?

Good morning I would like to enable my customers to read their data on my website through cell phones. My website is ASP.NET application. I saw Nokia and Apple has their own SDKs that enables you to accomplish it creating software application. Is there a unique language platform I can code my software in order to run it on all cell...

Getting the bounds of an MKMapvIew

In order to setup a query to an external server I want to get the bounds of the current Map View in an iPhone app I'm building. UIView should respond to bounds but it seems MKMapView doesn't. After setting a region and zooming in the map I try to get the bounds. I'm stuck on the first step which is to try to get the CGPoints that represe...

camera overlay view - just for preview?

I've noticed that in OS 3.1 you can add an overlay view to the image picker with cameraOverlayView However, I've also noticed that adding a view via this method also displays the view for the entire time the UIImagePicker is displayed, when I only want to show it during the preview stage. Is there a way to make this only happen duri...