iphone

TableViewCell, dynamically show Media Player controls iPhone

Hi, I am currently developing a app which records some audio files. The audio files are stored locally and the path is stored in core data. I am populating a TableView with the list of Audio's recorded. When I click a tableviewcell, I am able to play the recorded voice. I want to show some controls on the table view (like play an...

IPhone - Camera roll in app

Do you know some way to show the camera roll in my app with navigation bar, backward, forward, delete controls?? Thankz :D ...

iPhone view won't rotate

Hi, This is a continuation from a previous question that I asked: http://stackoverflow.com/questions/3730190/iphone-view-strategy I am now using the following method to switch between views: UIWindow *window = [[UIApplication sharedApplication] keyWindow]; [window setRootViewController:[self gameViewController]]; [[[self gameViewContr...

if else in nsdictionary

hi, i have a dictionary of array: array3 = [[NSDictionary dictionaryWithContentsOfFile:docpath2] retain]; no problem here. now i have an NSString *temp which contains some numbers. i would like to check whether this number exist in the dictionary, not each array. if([array3 valueForKey:temp]) is this right? doesn't the i...

uitableview - custom images keep loading in cell.contentView

In cellForRowAtIndexPath I am adding a UIImageView to cell.contentView. The problem is that when the cell scrolls off the screen and back on, it adds the same image again on top of the one that is already there. This happens continuously until I get a very stacked-up blurry image. Do you have to keep removing any image views that you a...

Simple way to read pixel color values from an PNG image on the iPhone?

Is there an easy way to get an two-dimensional array or something similar that represents the pixel data of an image? I have black & white PNG images and I simply want to read the color value at a certain coordinate. For example the color value at 20/100. ...

convert ipad app to run on iphone (universal app)

Hi guys - I have a working iPad app which I now need to make work on iPhone. I've been reading around a fair bit on this, but haven't found a good answer. On this site, I saw some discussion... but again, no definite answers. Does anyone know of any tutorials? I have captured in my code whether it's an ipad or not - so it's all ready -...

iphone . loading a PNG into a CGLayer not working

I have a CGLayer that was created like this: CGSize size = CGSizeMake(500, 500); UIGraphicsBeginImageContext(tamanho); ctx = UIGraphicsGetCurrentContext(); [self loadImageToCTX]; // this method loads an image into CTX lineLayer = CGLayerCreateWithContext (ctx, size, NULL); Now I have a PNG that has alpha and some content. I need to ...

Close a series of views in a for-loop [iPhone]

I need to close a series of views and don't wont to write code for closing them one by one. Here's a sample code to illustrate what I mean: //This is the method for placing the views. It's called at different times at runtime: - (void)addNotePic:(int)number { int indexNumber = ((110*number) + 10); UIImage *image = [UIImage imageNamed...

Core Data migration "can't merge models with two different entities named 'foo'"

I know this is a frequently asked question, however none of the solutions that I have found seem to work for me. This is my situation: I have one data model for my application, and I wanted to add versioning to it. So in XCode, I did Design -> Data Model -> Add Model Version. I also updated my delegate's persistentStoreCoordinator metho...

how to keep control of my root view while loading a view controller as a subview?

I have a root view which contains a table and a button. When I press the button a view is loaded on top of the root view but keeps my root view visible. The view that appears after the button is pressed is suppose to act as a menu that is scrollable. My problem is that when I want to close the menu that appears. Im using the [self.view ...

[iOS] The same number of characters in each line of UITextView?

Hi I'm developing a simple writing program using UITextView to study Cocoa programming. In UITextView, each line has different number of characters. I tried to change fonts of UITextView, but the width of each character seems to vary. For example, l and L has different width. Is there anyway to keep the same number of characters in each...

setContentOffset not correctly when canceling a search

I have a view which contains a UISearchBar. This UISearchBar is not displayed at the top of the page - it is about 90 pts down from the top of the screen, under a header image. All elements of the view are wrapped in a UIScrollView. The right thing happens when the user taps in the UISearchBar - the entire view is scrolled up so the sea...

Cocoa way to represent data for iphone dev

I come from heavy web application dev background, and having some problems representing my related data structures the right way in iPhone dev (the 'Model' part of MVC). Lets say I have a data structure which is best represented via JSON like this: { "Beethoven": { "description": "Another great composer", "pictures...

Using an NSObject to control onscreen elements

I'm using a UIViewController with some buttons, labels, etc which I need to change attributes of depending on the situation. I'm looking to create an NSObject to control these elements based on an int in the View Controller. When a button is pressed the NSObject will deallocate, the int will change and the NSObject will re-instantiat...

Background iPhone app for Jailbroken phones

Hey guys, I develop apps for jailbroken phones, and I need my app to be backgrounded and to be able to keep running as usual when backgrounded. On iOS3.0, I would just block the thread at applicationWillTerminate, and that'd be it. But it seems that the fast app switching method in 4.0 is disabling applicationWillTerminate, so I can't u...

How are people accomplishing photo filters in iPhoneOS?

What are people using/doing to create photo filters or photoshop like effects on iPhone OS? Things like B&W, sepia, cross-processing, 'vintage' etc. I see ImageMagick can probably do this with a lot of futzing around, any other options? ...

Is it possible to deploy an app to iPhone of newer version than it was built for?

Hello everyone, Could you please help me clarify the following. I'm aware of deployment target option, but what about forward compatibility? I currently build my iPhone app with base sdk version of 4.0. Is it generally possible to deploy such ipa image (built against an older sdk) via iTunes to a new iPhone 4.1 device for example? ...

How to initiate a phone call from my iPhone app?

Hi, How can I initiate a phone call within my application? And also, can block the incoming calls? And at times can receive the incoming calls? Any idea? ...

ipad rotation hides elements in view !

OK here is a very basic iPad app that i am starting out with and I am already into issue. I have been doing iphone apps but in that too never implemented rotation things.. well here is the issue. This is a simple viewbased app build with interface builder that looks like this: when i run the app, the vertical orientation has both elem...