iphone

Any quick and dirty anti-aliasing techniques for a rotated UIImageView?

I've got a UIImageView (full frame and rectangular) that i'm rotating with a CGAffineTransform. The UIImage of the UIImageView fills the entire frame. When the image is rotated and drawn the edges appear noticeably jagged. Is there anything I can do to make it look better? It's clearly not being anti-aliased with the background. ...

custom UITableViewCell item problems

Hi, I am a newbie. I have a custom UITableViewCell with 3 items: a UILabel a UITextField and a UIButton My question is, how do I know from which cell the button was clicked or textField was edited ? Is there a way to track them? Thanks for any replies. ...

Why does my image mask make my image black, where the mask is white?

I have a 300 x 400 px PNG-24 with alpha channel. It's about 140kb. I want to mask out some parts of that, so I created another 300 x 400 image as PNG-24 but with only black, gray and white and no alpha channel. The weird thing is: Where the mask is black, the image is just kept original. No transparency. But where the mask is white, the...

Passing objects between managed object contexts

Hi there, I have an iphone app with 2 managed object contexts. One of my contexts deals with a picker, which allows the user to add new records and then select one of those new records. Once the picker is hidden, that managed object context is saved and discarded. I then want to use this selected object in my second managed object con...

Loading and parsing xml document freezes my GUI in Iphone

Hello, i'm building an app that will read rss feeds and will present them in UITableViews. I searched on google and here and ai decided to use LibXML. When my app starts it checkes if it has a valid internet connection, and grabs an rss feed from which i extract some data and i make an uiTabBar with tableViews. after parsing the first ...

Does Apple reject Leaking iPhone apps?

Info on this can be found here and there, but is there a definite answer? Does anyone know from experience that his leaking app has approved or that his app was rejected "because it was leaking"? I am close to submitting a game that leaks a very small amount of data (32 bytes at a time), about once or twice a minute. Since the play cycl...

Does openGL ES have a better performance than Core Animation and UIKit when it comes to highly animated user interfaces?

Currently I have an user interface that makes incredible heavy use of core animation. I wonder if it is worth to spent another 2 months for learning openGL ES? Does that really improve drawing performance for 2D surfaces? I have no 3D objects, but highly animated 2D stuff. Sometimes with 3D distortions, a lot of rotations and scaling. I...

float to integer conversion using iPhones SIMD float unit

I am currently trying to optimize some DSP related code with Shark and found that I am wasting a lot of time in a float to integer conversion: SInt16 nextInt = nextFloat * 32768.0f + 0.5f; As the iPhone seems to have an ARM11 FP co-processor, I am wondering if I can replace my code with the FTOSI instruction. There is some documentati...

Unpacking rar on iPhone

Hi everyone, I created little download application with music player and now I want it to unpack archives, because quite often mp3s are packed in archive and you can play them before you unpack the archive. I found solution for .zip files on iPhone here on stackoverflow, but I'm wondering if there's a way to unpack .rar files, or other t...

How to implement a loading animation when navigating in a iPhone app?

It seems like a pretty simple problem, but I have been unable to find any good answers. What I'm trying to do is to make some sort of animation while some function is loading. I have already included an animated .gif file in the webapp when waiting for content, but I need the same functionality when navigating in native. For instance, w...

UITableViewCell have this weird line of pixels!?

At the end of my UITableViewCell, I have a line of pixel that I cannot remove. The line will change color as the cell is selected. It also changes color according to my selectionStyle. Here is a screenshot demostrating this problem. The cell is created with interface builder. 2 images are set as the background, one for selected, one f...

Multiple UITableView / datasources - how to approach it?

I have an app with four tabs, each tab will hold a UITableView with parsed XML feed. I'd like to be create a scenario much like the App Store, which has a number of tabs, and some of the NavigationControllers have a SegmentedControl in the top. I'd like to know how it's done? Is there a NavigationController that swaps a view controller ...

How to decrease Core Data's memory usage when cascade deleting large object graphs?

I'm using Core Data to store lists of data. So, there's parent objects with any number of child objects. Core Data does a great job keeping my memory use low while I'm inserting objects and reading but when I do a delete operation the memory spikes way up. When I delete a parent object with ~5000 children the cascade delete uses ~10MB. ...

Where can I find the Apple CrashLanding example app?

Google returns me just nothing useful on these keywords. But I know there is a "CrashLanding" app demo from apple. Anyone knows where it is? ...

How can I move around and slide away a UIView with touches and swipes?

Hello, I´m trying to animate a sort of draggable UIView where the behaviour should be something like this: Drag along the screen following the touch of the user. Detect a swipe touch and drag automatically with an initial speed and a negative acceleration that makes is stop after some time. Something like moving around a photo and th...

Which demo applications from Apple are good examples on usage of OpenGL ES on iPhone OS?

Besides CrashLanding, are there any other good example apps with source code? ...

What's the difference in openGL and EAGL / openAL?

Sometimes I read EAGL, openAL ... wikipedia doesn't tell me something about EAGL. ...

What files to keep under version control on iPhone projects?

I found this previous question about Cocoa projects, but I wanted to know if it's the same for iPhone projects. ...

Which openGL ES frameworks are available to use for 2D user interfaces with iPhone OS?

Currently I start learning openGL ES, but I wonder what kind of helpful frameworks are out there to get things done faster? ...

XNA on iPhone

I don't know if it's a strange question but how could I run a game made with XNA on the iPhone/iTouch ? Which steps/tools (existing ones or imaginary...) should be used ? note: The goal is to avoid modifying existing C# code UPDATE : If I understand correctly, I must be able to: 1) Run my XNA code on Mono (monoxna or SilverSprit...