iphone

What video formats are compatible with the assets library?

What video formats are compatible with the iPhone's assets library? In other words, for what video formats will ALAssetsLibrary's videoAtPathIsCompatibleWithSavedPhotosAlbum return YES? I can't seem to locate any information on this in the iPhone Reference Library. ...

How to restrict user to take data back up of our application data through itunes sync process? through coding

Hi, how do i restrict taking an application data backup using itunes sync.. its a requirement from my client that ....from application should not allow taking a backup of any files. Can you please suggest me whether this is possible or not.... if yes can you please suggest me ways to do it.. ...

Certification for Objective C

Hi. Is there a globally recognized developer certification for Objective C? any tips on what would make me marketable in objective C/ Mac OS X/ iPhone development? ...

Adding OAuth to Xcode project causes Xcode to not find Foundation headers (copious errors ensue)

I am using this OAuth lib: http://github.com/jdg/oauthconsumer When adding it to my project, it causes over 2000 build errors. These errors are all under the App_Preficx.pch file in the Build Results window. If you actually click on the errors, they are actually contained in every Foundation Header. I won't list them all, but here ar...

UIScrollView doesn't scroll even though contentSize set

Hi So, i have a view controller which contains just a scroll view. In viewDidLoad, i add a view to it from a nib, but when i do that, the scrolling stops working. The view i added works though, i.e. i can click buttons, but half of it is off screen. @implementation JCEKScrollViewController_iPhone @synthesize scrollView; - (void)viewDid...

Alternative to Sqlite for iPhone [monotouch]

Like the title says. I find a lot of the issues I have are related to the lack of thread safety in the Sqlite wrapper needed for using Sqlite with Monotouch - so - the question is - is there an alternative? There must be something!!? w:// ...

Declare Block with return value but no args?

There is no practical reason for this, its just something I was looking at today. Does anyone know if there is a way to create a Block that does not take any arguments. In the example below Block_001 would return 101, does anyone know what I am missing? int (^Block_001) = ^{ return 101; }; If I add a int argument then the block compil...

UIPopoverController forces iPad into Portrait orientation

I think the issue here is that I'm trying to call a mediaPicker and that doesn't support other orientations... Does anyone have a fix for this? Here is my current code: - (IBAction)openMediaPicker:(id)sender { MPMediaPickerController *mediaPicker = [[MPMediaPickerController alloc] initWithMediaTypes:MPMediaTypeAnyAudio]; mediaPick...

Default-PortraitUpsideDown.png not loading on iPad

I'm trying to get my launch screen to load with the proper orientation on the iPad. The landscape png loads fine, as does the portrait, but the upside down portrait always appears right side up (when it's supposed to be upside down). My PNGs are named the following: Default-Portrait.png Default-PortraitUpsideDown.png Default-Lan...

Xcode and AdMob on iPhone 3.2

How do I fix the following error: Undefined symbols: "_OBJC_CLASS_$_AdMobView", referenced from: objc-class-ref-to-AdMobView in AdWhirlAdapterAdMob.o ld: symbol(s) not found ...

How will this code publish an image to a wall using Facebook Connect?

I would like to know what this code does exactly. - (void)dialogDidSucceed:(FBDialog*)dialog { //[self doSomethingExciting]; FBStreamDialog *dialog2 = [[[FBStreamDialog alloc] init] autorelease]; dialog.delegate = self; dialog2.userMessagePrompt = @"Example prompt"; dialog2.attachment = @"{\"name\":\"Facebook iPhone SDK\"," "\"href\":\...

Writing a Macro for this: (Objective-C)

Hi, I have a method like this: - (CGPoint) _convertCGPointCT2UIKit:(CGPoint)ctPoint{ CGPoint uikitPoint = CGPointMake(ctPoint.x + INITIAL_HORIZ_OFFSET, self.bounds.size.height - ctPoint.y - INITIAL_VERT_OFFSET); return uikitPoint; } Is there any way I can make this a macro? I tried this but I get errors like "; expected b...

To read Email via POP3 using iPhone SDK

Hi All, I want to read the Email by giving username and password via POP3 using iPhone SDK for iPhone 4.0. Whether its possible to do it. If not can any body give me any link or open source to do achieve this functionality. Thanks in Advance. ...

Unable to set class properties

Now Im sure Im doing something extremely schoolboy here, but Im seriously hitting my head against a wall, for some reason Im getting EXEC_BAD_ACCESS when trying to set an NSNumber property on a custom class. Think Im having one of those days! Here my test h and m files: // Test.h #import <Foundation/Foundation.h> @interface Test : ...

Executing Blocks From NSArray?

Hi, I was just thinking, as you can treat Blocks like objects if I create two of them and then add them to an NSArray is there a way to execute them from the array? int (^Block_001)(void) = ^{ return 101; }; int (^Block_002)(void) = ^{ return 202; }; NSArray *array = [NSArray arrayWithObjects:Block_001, Block_002, nil]; EDIT: Update f...

Too large an AJAX response for mobile safari?

I am running into a bit of a problem in debugging a web application for mobile safari. The web app is a front-end for a fairly complex server-side simulation tool. The overview of how the web app works is: User is presented with a screen where they fill in values for the simulation to be performed. User clicks "run simulation" at whi...

Can Core Data handle my "system vs. user data" migration needs?

My iPhone app will have read-only "system" data AND read/write "user" data (stored either using Core Data or a custom SQLite db). The user data may reference the system data. When a new version of the app is installed (e.g., via iTunes): The new system data that comes with the update should overwrite/replace the old system data The use...

NSObject doesNotRecogniseSelector crashes program

Hi, I am learning how to develop iPhone applications and I ran into an interesting problem. In my view controller class, I have a an int variable that I @synthesize and overload the setter (though) this is not needed. When I run the application, I get this trace back: * Call stack at first throw: ( 0 CoreFoundation ...

Are either the IPad or IPhone capable of OpenCL?

With the push towards multimedia enabled mobile devices this seems like a logical way to boost performance on these platforms, while keeping general purpose software power efficient. I've been interested in the IPad hardware as a developement platform for UI and data display / entry usage. But am curious of how much processing capabili...

Sending a two byte sequence from an iphone application to a WLAN module in adhoc mode

Hi programmers, does anybody of you know some code snippets on opening an CFSOCKET and sending a two byte sequence via TCP/IP to a WLAN module, which is programmed to serialnet, listening on PORT 5100, the IP-address of the modul is: 192.168.100.1. I try to get those two bytes out of a UART of the WLAN module. I have bought "pTerm" and...