iphone

iPhone DRM implementation for audio and video

I've done a lot of googling, to no avail, Im interested in knowing what my native or third party options are for implementing DRM to protect audio (say in a spotify like scenario) and video (for VOD applications) i've seen mention of widevine but all the content seems to be at least 18 months to 2 years old. What options do i have for im...

Memory leaks in NSMutableDictionary

Hi, When i run the instrument tool i'm getting memory leaks in the following lines,"(NSString *)feedString" is JSON response i'm getting from the server,can any one give and idea how can i fix this memory leak, Thanks, Sam, NSMutableDictionary *allCards = [NSMutableDictionary dictionary]; CardTypeDTO *cardTypeDTO = [[CardTypeDTO a...

iphone programming ?. Change UITableViewCellEditingStyle image ?

Hello Fellows, I just need to know is it possible to change UITableViewCellEditingStyle image ?. If possible please tell me How to do that? ...

How to send CVImageBufferRef over the network in iOS?

Hi, I want to send a CVImageBufferRef I got from - (void)captureOutput:(AVCaptureOutput *)captureOutput didOutputSampleBuffer:(CMSampleBufferRef)sampleBuffer fromConnection:(AVCaptureConnection *)connection{ CVImageBufferRef imageBuffer = CMSampleBufferGetImageBuffer(sampleBuffer); } over the network using NSOutputStream's write:maxL...

Creating a PDF programmatically using CGContext - cannot get line breaks + iPhone

Hi I am creating a PDF programmatically in my iPhone app using CGContext and CGContextShowTextAtPoint. While this works fine for smaller text, whenever I have line breaks in my text (\n) or want the text to wrap automatically to the next line when it reaches the end of the page, this does not happen. Any line breaks in the text are sim...

NSDateFormatter problem

hey i have my date as "7/30/2010". How do i print it as only the Month and Date ie. "7/30" I tried using NSFormatter but it prints my current date and not which is present in my database. ...

Call method in nested parent controllers

I have a UIViewController that has an UIPopoverController that has an UINavigationController then a UIViewController. How can I from the child UIViewController call a method (eg. -(void)update) in the parent UIViewController? tried many combinations but still didn't work. ...

Can I develop for Android and iPhone with Adobe AIR if I don't care about the App Store?

As far as I understand, applications made with Adobe AIR have been blocked from the App Store. If I wanted to utilize AIR anyway to create a cross-platform app (for iPhone and Android) would it be possible to distribute the apps outside of the App Store? I have very little experience with the iPhone, but I know that in Android you can t...

Objective-C, iPhone SDK basics

OK, this is going to be a stupid question but anyway I have nowhere to ask it except here. I have two buttons and there must be a switch-case statement performed on tapping any of them. Of course I can put this statement in each IBAction code block but this code would look terribly. I tried to put swith-case into a separate method and ...

Error while adding application using Application Loader

When I submit my binary using Application Loader, I get the following error: Error while processing package 341754380.itmsp An exception has occurred: org/apache/commons/logging/LogFactory I have tried this repeatedly. I get the same error every time. Any ideas on what could be wrong? ...

What's iOS 4.0 Location Multi-tasking abilities

Apple's developer website describe 3 types of background services an app can use, music, location and VoIP. When they describe background location services they talk about 2 types of apps: critical and non-critical apps. A GPS navigation app falls into the 'critical' category, and location based social networks like Gowalla and Loops fa...

Face book window closing unexpectedly from iphone.

Hi, I have integrated facebook in my application. but after successful user login, it is closing unexpectedly. is there any one face the same problem. please tell me how to resolve this. ...

Renaming project gives med code signing error

Hello, I just renamed my project and also in the project.pbxproj renamed my product to the new name. Now I am getting codesigning error when trying to debug on the phone. How come and how do I fix this? I have defined the profile to the same as on my phone for "debug"-ing. It works well on the simulator. It didn't work before chang...

Setting an NSNumber property out of scope

For some or other reason when I call the init method and try and set the property it never seems to work: //This is where I am setting the value Hotel *newHotel = [[Hotel alloc]initWithCoordinate: coordinate hotelId:[NSNumber numberWithInt:1234]]; //This is the implementation of the method I am calling - (id)initWi...

Objective-C: Add an observer to an NSMutableDictionary that gets notified when count reaches 0

Hi there, I would like to be notified, when an NSMutableDictionary's count reaches 0. Is that possible without extending NSMutableDictionary (which I heard you should not really do)? Could I e.g. have a category that mimicks remove methods by calling the original ones while checking whether count is 0? Or is there maybe a simpler way. ...

UIAccelerometer and UIScrollView

Hi, I want to scroll a scrollview based on the UIAccelerometer values. What is the best way to accomplish this? Thanks and Regards ...

How to post data from Iphone to sqlserver.

Hi... I want to post data from Iphone to Sqlserver using WCF REST service.... In Iphone i have a dictionary(with 5 K-V pairs) & want to pass a single element of this dictionary (like Id )through webservice(Browser) ......& save all the other K-V pairs in Sqlserver corresponding to this Id using the method made in Wcf service. Plz Any he...

iPhone view navigation problem

Hi, i've a 3 views based app. To navigate from different views i use the delegate method, for example in the second view i've a delegate which is the reference to the first view and when i want to pass from the second to the first view, i call a method of the delegate which made a simple : [self dismissModalViewControllerAnimated:YES]; ....

determine sound recording source in iPhone SDK 2.1

Hi All, While recording a sound, how can I know if the source of the sound is from the built-in microphone or headphone microphone? Thanks ...

What is the best way to collect a user's timezone without explictly asking the user ?

For my project(a web and iPhone based application) i need to collect a user's timezone so as to show him/her the relevant data.Some of the possibilities that I can think of are : 1.Getting it using user's IP (But what if the user is behind a proxy server) 2.Sending it with request params(But that will require extra param to be attached ...