iphone

Getting error while using FDMB sqlite wrapper for iPhone

Hello, I am getting an error while compiling when I use FMDB wrapper for sqlite. The error is "_sqlite3_open_v2", referenced from: -[FMDatabase openWithFlags:] in FMDatabase.o symbol(s) not found collect2: Id returned 1 exit status I just added the classed and havent started working with it.Any help to resolve this. ...

Good strategies for REST -> XML -> Core Data -> UITableView?

What are good practices for asynchronously pulling large amounts of XML from a RESTful service into a Core Data store, and from this store, populating a UITableView on the fly? I'm thinking of using libxml2's xmlParseChunk() function to parse chunks of incoming XML and translate a node and its children into the relevant managed objects...

Can I access/play the default audio files that come with iPhone ?

In my app I want the user to choose (picker) what sound to play from the default audio files that come standard with the iPhone (Marimba, Alarm, etc...). And then play it when needed. Thanks in advance! ...

iphone app send email

Hi, I know how to send an email within my app by launching the Mail app then returning to my app... but I would like to my app to be able to send email without opening the mail app. For exemple i'd have a button in my app clicking that button would send out an email. I will then notify the user that the email has been sent... Has anyone...

Customizing UIActionSheet

In the Twitterific app, there's a control that looks like UIActionSheet but it looks customized. I would like to know how to make a view that similar look & feel with the buttons in a horizontal row instead of the default vertical. Any one have any suggestions to a link for a tutorial or sample code to get started on this? The standa...

Strange malloc error with autoreleased UIImages of specified size

I am tracking down a strange bug. The bug manifests itself with the display of this message in the console log: BlurApp(5018,0xa00d6500) malloc: *** error for object 0x103b000: pointer being freed was not allocated This message pops in after execution has left my event loop. It seems to be happening when the autorelease pool is bein...

MKMapView Route/Directions

I found that the Google Maps API supports Directions through: var map; var directionsPanel; var directions; function initialize() { map = new GMap2(document.getElementById("map_canvas")); directionsPanel = document.getElementById("my_textual_div"); map.setCenter(new GLatLng(49.496675,-102.65625), 3); directions = new GDirection...

touches in touch event handling in UIView vs UIViewControllers

So, I'm capturing multiple touches and determining the number and where each of the touches occurred and I'm seeing different behavior between a UIView UIViewController. Basically, the event handler is coded below: (in this case the touchesEnded, but it really doesn't matter). What happens in the View, is that I get the entire collect...

Swipe the more than 2 Views?

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event { if (dirString) { CATransition *animation = [self getAnimation:dirString]; [[self superview] exchangeSubviewAtIndex:0 withSubviewAtIndex:1]; [[[self superview] layer] addAnimation:animation forKey:kAnimationKey]; } } Hell...

When to release CATransition animation? (iphone)

Hey, i am using this code to animate something CATransition *animation = [CATransition animation]; [animation setDuration:0.45f]; [animation setType:kCATransitionPush]; [animation setSubtype:kCATransitionFromRight]; [animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionDefault]]; [[theWindow la...

iPhone 3.1 SDK Camera Access

I have a question about camera access. And it's simply, how can I create an application that would initiate a camera and update de image view with the image picked by the camera? I am really a noob on camera handling, done about a tutorial or two, but couldn't manage to create this simple app, for study reasons. Can anyone give a light...

MKMapView only showing a single Annotation after n iterations

I use the loop below to populate my MapView. However it always shows only one pin at a time, no matter how many iterations i do. Individually declaring items doesn't seem to have an impact either. I'm using the initial 3.0 SDK with xCode 3.1.3 on osx 10.5.8, The 3.1 SDK changelog didn't make any mention of any fixes to the MKMapKit f...

gen_bridge_metadata and the iPhone

Is it possible to run gen_bridge_metadata on iPhone frameworks? I keep running into the problem of gen_bridge_metadata not using my preprocessor defines... So a call like this... IPHONE_SDK=/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk gen_bridge_metadata -c '-I$IPHONE_SDK/usr/include -DTARGET_OS_IPHONE' --frame...

Dumping frameworks for iPhone 3.0 not working?

Hey I need some extra capabilities for my program and I would like to use some Undocumented APIs for my iPhone program. I downloaded: DumpFrameworks as Dumpframeworks.pl and class-dump from : http://ericasadun.com/HeaderDumpKit/ I put DumpFrameworks.pl in Downloads and class-dump file in /usr/local/bin in the terminal I run: $perl D...

scene transition in iphone

am using cocos2d now when user press start game .. game scene changes (using director)and game.png get loaded on screen but how to call my startGame() ,i mean where should i call my startgame() as i cant acces appdidfinishlauncing form here.. here is the code // in app delegate class (void)applicationDidFinishLaunching:(UIApplication ...

iPhone SDK - pass data from AppDelegate to a rootviewcontroller

I have a navigation controller based iPhone app. I am using remote notifications and need to pass in the device token from registering via this code in the AppDelegate: - (void)application:(UIApplication *)app didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)devToken { NSLog(@"registered"); NSLog(@"dev token desc = %@", [devT...

Is it Possible to Center Content in a UIScrollView Like Apple's Photos App?

I have been struggling with this problem for some time and there seems to be no clear answer. Please let me know if anyone has figured this out. I want to display a photo in a UIScrollView that is centered on the screen (the image may be in portrait or landscape orientation). I want to be able to zoom and pan the image only to the edg...

Objective-C DOM XML parser for iPhone

Hello guys I'm looking for a way on the iPhone to parse an XML document using DOM. I have been using SAX with NSXMLParser but now I really want a DOM tree (or anything that can quickly translate the XML document into an NSDictionary) Thanks for any help ...

User file cannot be parsed in subversion in MAC iphone SDK.

i am new to iphone ... just updated my project with Subversion and now, if I try to open the project, I get that error: "Unable to open project /Users/dualg4/DEV/MacStubs/MacStubs.xcodeproj cannot be opened because the user file cannot be parsed" Where can I find it? How can I get my project to load again? any help?????????? ...

Xcode 3.2 Missing Class Actions / Outlets?

Where are the Class Action and Class Outlets in Xcode 3.2? They aren't showing up in the Inspector like they used to. ...