ipad

objc_msgSend() error message, why?

Hi. I got the "objc_msgSend()" killer error message in my app and thanks to Hamster Emporium i can figure out a little bit what was happening. Now i found the "problem" and the "solution", but what i can't understand why my problem was really a problem. Here is the scenario: Object_A --> Object_B --> Object_C The '-->' symbol re...

ModalViewController delegate confusion

I need to present a modal view controller and be notified when it is dismissed or notified that I need to dismiss it, looking here I am still confused: http://developer.apple.com/library/ios/#featuredarticles/ViewControllerPGforiPhoneOS/ModalViewControllers/ModalViewControllers.html#//apple_ref/doc/uid/TP40007457-CH111-SW14 I have my m...

Syncing iOS Core Data with remote server which sends XML

My app parses XML from remote server and store the objects in Core Data(SQLite storage). So that user can browse the material when OFFLINE by reading from local storage. User may make changes to objects when browsing offline which gets stored locally in Core Data SQLite store. Another User makes some changes to object on Remote server ...

iPad UISplitViewController multiple root views

I am developing for iPad and have created a standard UISplitViewController application using the template provided in Xcode - a standard UITableView on the left and a detail view on the right. I have modified the template so that when a user selects a table cell from the left view it pushes a new table view in it's place (still on the l...

shouldAutorotateToInterfaceOrientation starts circular reference race

Hi I am trying to implement orientation awareness in my iPad app. (iOS 3.2). As far as I can understand something has changed from 2.x(which was the last time I did rotation) to 3.x. My landscape and portrait views are very different so as the shouldAutorotateToInterfaceOrientation is called I instantiate a new viewController and adds ...

Location-based features in iOS

Not sure if this is possible, but I wanted to check it out. I want to access the GPS features in iOS, specifically on iPad through my app. Ultimately the goal is to be able to see who else nearby is currently running the app as well. Is this at all possible or practical to implement? ...

iPad + HTML5 Video Tag + External display issue

I am using HTML5 video tags in a UIWebview on the iPad, and positioning them as needed using CSS. The key part of these videos is that they are designed to take up part, but not all, of the visible area on the page. When I'm doing this in the "normal" mode of displaying content only to the primary UIScreen, everything works great. Howe...

note-taking using natural handwriting in iPad

Hello how can we do the note-taking application using natural handwriting in iPad like the application WritePad for iPhone did? How can we recognize the finger writing and how can we convert it into natural handwriting in the iPad,is there any public API's. Any suggestions or any example code would be appreciated. Thanks in advance:) ...

Built-in function for converting between unicode characters and virtual keycodes in Cocoa?

Is there a way to convert a unicode character to a Mac virtual keycode? (without building my own table?) It looks like on Windows there is VkKeyScanEx, but I'm not aware of a similar function for Cocoa on OS X. I'm actually trying to do this for the iPad. I want to convert character taken from the keyboard and convert them into key code...

Making a Sprite unmovable...[Chipmunk & Cocos2D]

Hi all... Im using Chipmunk with Cocos2d to make a gravity based puzzle game, however I have reached a part of my project whereby I need a sprite that once drawn does not move and cannot be moved by the other sprites within the environment. In essence... Can I create a static (non moving) sprite that is not affected by in game gravity...

determine if point on screen is within specific UIScrollView subview

A UIScrollView contains several UIView objects; how can I tell if a point on the screen not generated by touches is within a specific subview of the scrollview? so far atempts to determine if the point is in the subview always return the first subview in the subviews array of the parent scrollview, ie the coordinates are relative to the ...

strange error iPhone/iPad

Hello stack overflow, So I have a table view that contains a bunch of data. The user can navigate down, browse edit, etc. However when they edit and delete a row, and then navigate back via the nav controller, sometimes (not all the time) the app crashes throwing this error: -[CALayer resourceType]: unrecognized selector sent to inst...

iOS AVAudioPlayer multiple instances, multiple sounds at once

I am working on an interactive children's book for the iPad that has a "read to me" option. For each page (that has an index), theres an audio clip that produces the "read to me" feature. The feature works well, except for the fact that when I turn the page, the previous pages audio still plays, even when the new audio starts, here's my...

Twitter for iPad UI - How does it work?

Twitter for iPad introduced a new way of browsing content. Does anyone have a guess of how these sliding panels are managed? Is it one big UIScrollView with a bunch of UITableViews in it? Or a bunch of UIViewControllers sliding on top of each other? Or something else? What's your bet? ...

Can I call libxml parser from multiple asynchronous network calls?

I have a piece of code that uses NSURLConnection to fetch a network resource asynchronously and parse some XML as it streams in. The XML parsing is handled by libxml2 which is available as a framework in the iOS SDK. This works perfectly when I invoke it once, parse the XML and release the resources by calling xmlFreeParserCtxt(ctxt). ...

Touch events in separate thread?

Hello everyone! I have a little problem. My OpenGL application is heavyweight and touch events comes too late. I read question about it, but I have my own. How can I separate main(drawing) cycle into one thread and touch events to another one? ...

What are best practices for IPhone web development

I need to know best practices for IPhone/IPAD HTML5 Web development. ...

Building custom view controllers based on the UIScrollViewController for the iPad

I've been eying the E*TRADE iPad app (visible at http://www.apple.com/ipad/apps-for-ipad/#etrade) and wondering just how they manage to effect a 'carousel of view controllers'. Clearly there's a UIViewController under the covers ... but beyond that I get quite lost. It's pretty much a UITableView on it's side. Is there any sample code ...

CoreText mapping characters

I have some in a touch handler which responds to a tap on a view that I've drawn some attributed text in. through this, I've got to the point where I have a CTRunRef (and the associated line) as well as the number of glyphs in that run. What I'm not able to figure out easily, is how I can take that run of glyphs and, given my attributed...

Adding a UIView below the screen

I have a UIViewController added using addSubview hanging out on top of another UIViewController. I would like the added view to hang out below the screen to be called up with a nice animation when I need it. Is there a way to add a subview to a screen at a certain location? ...