iphone

Animate a spinning cube after touch event - iPhone objective c

I have a UIViewController implementation which builds a core image cube and rotates it while there are touches events occuring. It has the following methods: initController touchesBegan touchesMoved touchesEnded continueSpinning I am trying to continue rotating the cube after the touchesEnded fires for an amount of time (say 2 sec...

Publish stream with FacebookGraph API using ASIHTTPRequest?

Can someone please explain to me how to create an ASIHTTPRequest object that can post a stream to facebook using the Graph API? The API call is: https://graph.facebook.com/me/feed?message=X&access_token=Y The method type is POST ...

NSEntityMigrationPolicy subclass methods not being called

I am trying to migrate from one .xcdatamodel file to another. I have a NSEntityMigrationPolicy subclass, the name of which I have entered in xcode-> .xcmappingmodel file -> entity -> "custom Policy" field. I run my app which successfully opens and runs the previous version of my data so I can only assume basic migration has worked. HOWE...

Launching the iPhone maps application from your own code

How to Launch the iPhone maps application from our own code [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://maps.google.com/maps"]]; I tried this code,but its coming in browser.Its not opening in the iPhones Default map app... I want my code to display the iPhone default map app to come up after existing the ap...

UIPickerView get "Clicked" Element?

Hey Guys, im using a rotated UIPickerView to use it horizontal. This works fine so far. Now i want to get the View/Title of the "clicked" UIPickerView row. The Delegate gives me the opportunity to get the "selectedRow" when the Picker selects a row. I want no event while selecting it i need the event of clicking it. The funny thing is...

Objective C Project using C++ POSIX Classes

Hi, I have to create a iOS Programm using Code of some C++ POSIX Classes. I already read the "Using C++ With Objective-C" manual of the Apple Developer Center. They describe how to mix C++ & Objective C code in a .mm file. My question is, is there any possibility to use the C++ Classes in my .h/.m files of a normal Objective C Project?...

Adding a route to a MKMapView

I'm trying to add a routing feature to an app I'm working on. I found Craig Spitzkoff's article on how to draw lines on an MKMapView which works pretty good. But since I don't have the coordinates of the points on the roads that doesn't help me as expected. Is there any way to determine the coordinates between to given points, say my cur...

Have labels fill axis - Core-plot

Hi, I am attempting to write an application with core-plot that will scale the y-axis values between the smallest value and the largest value. This part works well, however when these values are drawn on the y-axis line, the values do not take up the entire length of the y axis. Statement to set up y-range: plotSpace.yRange = [CPPlotR...

Save entire and visible image in UIScrollView when zoomed

Hi friends i have small assignment on to zoom in and out a image .. for that i have used UIscrollView and UIImageView , zooming in and out works fine for me however i need save entire and visible (visible area on screen) image in UIScrollView when zoomed in or out If any body has any idea how i can please share with me . i stucked wit...

What's the best way to implement HTTP Post chunked request on iPhone?

There's a really old thread from 2008 that mentioned NSUrlConnection is quite buggy and leaks a lot. Is this still the case? Is there any Cocoa Touch class that already implements the chunked upload or am I better off using the CF classes? ...

iphone app run in the simulator but not on the device

Hi, I am trying to run the Facebook DemoApp on my iphone and I get the following errors (it works without errors on the simulator) Please help me ***************************** Build DemoApp of project DemoApp with configuration Debug Ld build/DemoApp.build/Debug-iphoneos/DemoApp.build/Objects-normal/armv6/DemoApp normal armv6 cd /U...

How do you communicate to a Modbus device within an iPhone application?

I would like to be able to develop an iPhone application that can communicate with Modbus devices, but I'm not sure how to proceed. Has anyone had experience with this or are there existing libraries out there for this purpose? ...

Flood-fill on iPhone

I have been trying to perform a flood fill on an image with objective c in an app on an iPhone, and have come to a couple of dead ends, so I thought it would be a good idea to ask before going any further. At the moment the based routine is that I am getting the raw data from the image, and using a queue to implement the flood fill. The ...

How do I make NavigationItem UIBarButtonItems visually acknowledge a touch?

I have a UINavigationController where I initialize the NavigationBar as such (using MonoTouch): NavigationBar.BarStyle = UIBarStyle.Black; NavigationBar.TintColor = UIColor.Black; On a UIViewController that I subsequently push onto the navigation controller, I add a button as such: NavigationItem.RightBarButtonItem = new UIBarButtonI...

ZSync tutorial - Syncing CoreData data between devices

I am interested in syncing CoreData data amongst several apps running on iPhone, iPad and MacOSX. I found ZSync project from Mr Zarra but did not find any related tutorial. I contacted Mr Zarra who is always working on improving ZSync (thanks for that) and do not have planned yet to write a tutorial. Any of you have implemented ZSync fu...

Why can't I parse an image from an XML file using this code from my iPhone application?

I'm having trouble importing image data which is encoded in an XML file. Following is the code of my class where I read the XML file and try to get the photo from the encoded data. edit 1 I haven't any errors but I always get an empty value on "artXML.photo".... Can anyone point out what might be going wrong? -(void)parser:(NSXMLPar...

iPhone customized view before crash

Hello, I have a view in my app which says something like "sorry for the crash, please restart the app", and I'd like to show it after crash. so is there any general way I can detect a crash that is about to happen and show the view before it does? Thank you. ...

setting up iPhone P2P only over bluetooth and without GKPeerPickerController

I want to use a custom interface to connect with other iDevices in a p2p game. I know I can either use GKSession and GKSessionDelegate or use the lower level Bonjour browsing. But both of them will search for devices both over bluetooth AND wifi. I want to list only bluetooth devices. I know this was answered in the past as impossible, ...

iphone page curl without uiviewanimation

Hello, I am trying to do a partial page curl with the following: CATransition *animation = [CATransition animation]; [animation setDelegate:self]; [animation setDuration:1.0f]; [animation setTimingFunction:UIViewAnimationCurveEaseInOut]; [animation setType:(notCurled ? @"mapCurl" : @"mapUnCurl")]; [animation setR...

NSThreading for speed

I'm working on a game sim and want to speed up the match simulation bit. On a given date there may be 50+ matches that need simulating. Currently I loop through each and tell them to simulate themselves, but this can take forever. I was hoping 1) Overlay a 'busy' screen 2) Launch a thread for each 3) When the last thread exits, rem...