iphone

iPhone - getting unique values from NSArray object

I have an NSArray formed with objects of a custom class. The class has 3 (city, state, zip) string properties. I would like to get all unique state values from the array. I did read through the NSPredicate class but couldn't make much of how to use it in this case. The only examples I could find were for string operations. Can someone ...

subViews frame when oreiantion changes

Hi all,in my app i am having many ViewControllers.Most of them have tableViews as subView.Many cells of the tableView have label and textField as subView.When from potrait mode to landscape mode i change,tableView gets resized (i.e width and height of tableView gets adjusted to that of screen).But my labels and textField width wont get c...

Is there an alternative to the Media Player framework for playing non-fullscreen video in an app?

The docs say that the Media Player framework will play video only in fullscreen. In my case I want to play video in a little portion of the screen, while using UIKit / UIView. What would help out? Do I have to use an openGL ES view for that? ...

should one customize default iphone controls?

my app asks the user yes-no questions, user replies using a uiswitch on screen. i've been thinking about creating a custom version of the switch that would display yes/no instead of on/off and would use a green/red background as an indicator of the value. after creating a mock up i'm not so sure this is the way to go. using the default s...

Xcode's shared workgroup 'Unreachable' after Snow Leopard/Xcode upgrade.

After upgrading to OS X 10.6 (Snow Leopard) and iPhone SDK 3.1 (with Xcode 3.2), Xcode's shared workgroup builds (distributed) can't seem to find or access other computers in our office. Distributed builds worked perfectly in OS X 10.5 with iPhone SDK 3.0. All the computers that have upgraded are now listed with a status of Unreachable...

Getting around the limitations of iPhone's UITextField

I have spent a few days trying to get around the limitations with UITextField, namely no text wrap and number of lines. I have created a UILabel, which is used to display the text entered in UITextField and does all the formating stuff properly. The UITextField is hidden and the user sees all the texted entered only in UILabel as it's be...

iPhone framework paths?

I recently moved my projects to a new mac, along with a newer version of Xcode. When i opened my project i noticed that some files were red. So i remapped them by setting the path (by project path) and then providing the proper path location. Now my problem is that the frameworks that i have are red, and i cant find their location! I d...

Can we put the lite version of any app on the app store after launching of sdk 3.0 ?

HI all , After launching the sdk 3.0 .Did apple refused to launch of the lite and the standard version of one app on the app store , i heard that apple will kill the app if any app have two version like one lite and another standard cause it is increasing the redundancy on the app store.if any one know or have reference link pls provid...

Collections of collections and Objective-C memory management

I have a pretty simple question. While I am fairly new to Objective-C, I have gotten pretty comfortable with the language and the memory management model. I understand ownership pretty well and the notion of explicit and implicit. I also understand that when you add anything to a collection, it takes ownership of the keys and values a...

How to show the XMDF and the EPUB extension file on the iphone ?

hi all , I want to show some file on the iphone and they have the file extension of :- pdf,epub,xmdf i saw that we can show the pdf easily on the iphone but what about the remaining two format files ,is there any way to show them on iphone via any converter or converting them in to another extension and than we can show on to iphone, ...

Iphone devolpement Dynamic Flickr Rss graber

Hi, I am trying to adapt http://kosmaczewski.net/2009/03/08/asynchronous-loading-of-images-in-a-uitableview/ to load a specific flickr feed but at the moment when I put in a flick rss feed in definations.h it wont load the images past the thumbnail view // // Definitions.h // AsyncTable // // Created by Adrian on 3/8/09. // Copyrig...

Objective C confusion - Setting sythesized vars to ivars

I've noticed in some of the examples ive seen that you will set a engine( class variable ) to a _engine ( ivar ). I don't get it. What's going on here? Here is an example of what I'm saying: @synthesize engine = _engine, delegate = _delegate ...

How do I force UIImageWriteToSavedPhotosAlbum to synchronize (flush) buffers?

I am writing a simple application for an artist who wants to market his work on iTunes. Because there are only twelve images, which can be deleted more rapidly than they could be selected from an image picker, the user does not select the images individually. Instead, the images are copied programmatically from the application bundle in...

NSData & NSURL - url with space having problem

I have following code in my application. NSData *data=[NSData dataWithContentsOfURL:[NSURL URLWithString:pathOfThumbNail]]; pathOfThumbNail has following path http://70.84.58.40/projects/igolf/TipThumb/GOLF 58B.jpg When I open above path in safari browser - path is changed automatically & image is successfully displayed. http:/...

how to implement Multidimention array

Hi, I want to use a multidimensional array. Can any one explain how to use that in an iPhone app? I'm new to Objective-C. Here's what I'm trying to do: I am spliting the main string on the basis of seprator and storing in an array. replacing some content of this array's each elements with new substrings and new values are storing ...

How to get back all those good old Xcode features?

After I've upgraded to Snow Leopard and Xcode 3.2, everything was screwed up. It took a while for me to figure out the whole evil was that my old Xcode installation was not really "updated", but replaced. So just everything was gone. All SDKs, Settings, everything. So Code Sense did not work because of no SDK available, and all the othe...

iPhone Book Application Help

Hello fellow programmers, What im tyring to create is an application the utilizes book features like when the user drags a touch or just touches the right screen the page turns, the book im trying to create has atleats 300 pages. What i need is a starting point on how to access the text data and display it on a view. When the user chang...

Why do these UITableViewCells cause a leak in instruments?

So after a lot of old fashioned comment-out-debugging to narrow down a leak in instruments. The leak occurs when I push a new TableViewController onto the stack. I found that I'm getting a leak from this code: - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellI...

Xcode lost all frameworks after update to Snow Leopard: How to fix that?

For some reason after updating to Snow Leopard, my Xcode 3.2 is stupid like a toast. I had all iPhone SDK's, tons of Gigabytes of data. All is gone to deep toilet. And now I start downloading all that stuff again. Is there maybe some little hope that all those SDK's are still on my mac, somewhere? Where? Or must I really re-download and ...

How to get iPhone SDK 2.2.1 for Xcode 3.2?

After my upgrade to Snow Leopard and Xcode 3.2 (which I really regret a lot!!), Xcode lost all the SDK's. I'm one of those old-fashioned idiots who still want to develop for 2.2.1. But Apple does not offer me an old SDK download. Now I was clever and made tons of time machine backups. But: What's the preferred way to get iPhone SDK 2.2....