iphone

Fill an actionsheet with an array

I have an actionsheet popup in my iphone application. I would like to fill it with strings from an array instead of predetermined values. I can't find anything online to do this! Perhaps actionsheet isn't the right thing to use? Right now this is what I'm using to build it: roomspopup = [ [ UIActionSheet alloc ] initWit...

Backing up 2-4 previous views...

I'm writing a standard table view application with a number of views in the hierarchy. When I've clicked in 3-4 views, is there a way to get back to the top view? I tried loading it, but then I lose the hierarchy. I know this command will bring me back 1 view, which is what the 'back' button does: [self.navigationController popViewCo...

Cheetah 3d Model > XCode Open GL Application

Hi, I'd like to import objects I create in Cheetah 3D to my open GL iphone app. Can someone show me how this can be done? I can export my objects as any number of file formats, but I'm thinking obj is the correct one. What do I need to do to render this in my opengl canvas? Thanks, I am a total n00b when it comes loading things from...

iPhone UIImagePickerController didFinishPickingImage: UIImage transfer between view controllers?

Hello, In my app, I have a UIImagePickerController. When a image is selected, my view controller needs to get the image and pass it to another view controller, which is pushed onto self.navigationController. But I am always getting SEGFAULTS or nil arguments, and things like that. I would appreciate it if you could tell me what is wrong ...

Change Default Scrolling Behavior of UITableView Section Header

I have a UITableView with two sections. It is a simple table view. I am using viewForHeaderInSection to create custom views for these headers. So far, so good. The default scrolling behavior is that when a section is encountered, the section header stays anchored below the Nav bar, until the next section scrolls into view. My questi...

UIBarButtonItem with color?

Is it possible to have a red UIBarButtonItem? ...

How to implement water ripples?

I'm working on an iphone game. In that i had to produce water ripples. I dont know how to get that. I heard thatit can be done with openGL. I am very new to this concept. Can any one guide me? ...

NSNumberFormatter to format US Telephone Numbers

I'm trying to convert a string of numbers, entered by the user, into a sexy string like Phone.app on the iPhone. Here is the code I'm using, which doesn't work (no special format comes out) and after a certain number of digits it just starts adding "0" to the end of the string. NSNumberFormatter *formatter = [[NSNumberFormatter alloc] i...

How to release memory associated by CGImageCreateWithImageInRect

I am using CGImageCreateWithImageInRect() for generating a small image from a background image runtime, which is going to displayed for every thread call (0.01 sec). Once I start showing part of image through CGImageCreateWithImageInRect application starts consuming memory in very high rate and crashes within seconds. Memory consumed goe...

How can Play Audio file in loop without any interruption ?

I am trying to develop a simple iPhone app. I need to play sound within a loop. How can Play Audio file in loop without any interruption ? ...

how to make phone call by using objective c ?

hi to all, can anyone help me to do making phone call by using objective c. thanks in advance... ...

Round UIButton

Hi, I want to know whether drawing a round UIButton(not rounded rect) is possible. When I add a round image in a UIButton of type custom, then it looks like a round button. But at the moment the button is clicked the boundary of the button becomes visible, so that it looks like a square button, then again when the click ends it looks l...

How may a linked list be saved/loaded from a file efficiently using Objective-C?

After four weeks of learning Objective-C for the iPhone, my first useful application is almost finished. However, I still need to save several instance variables whenever the current view is changed and to reload them when the view is reopened. I have no trouble loading variables with basic C types like int and BOOL, but am having diffi...

I need an graphical Editor to create PNG files with alphatransparency

Unfortunately, Photoshop currently is the only graphical editor I can use to create PNG files with alphatransparency. I really hate it. But I need it. But can't afford it. Pixelmator looked so good, but it crashes over and over again. On my brand new MacBook Pro. Really, that's not an option. Gimp: It crashes imediately after start. A...

iPhone beta OS limitations

I am thinking about installing the iPhone 3.0 beta OS on my iPhone, but it is my personal cell phone. Are there any limitations in the beta OS that would affect the phone's normal usage? ...

Interface Builder "Simulate Interface" not working

I am using Interface Builder to play around with some ideas. I never noticed that there is a "Simulate Interface" feature which apparently will render the nib in the iPhone simulator. So, I created a view, put one component in there (a Segmented Control), saved it, selected "Simulate Interface", the simulator launched but... nothing rend...

Calling remote php functions from an iPhone app

Anyone have any suggestions on how to set up both the php and the cocoa side of calling php functions? As a quick idea of what I want to do, I want to be able to to populate two tables with data and add/remove data from the db. So I want to set up a few functions in php that I can call from my iPhone code that will return values from my ...

SQLite - a smart way to remove and add new objects

Hi, I have a table in my database and I want for each row in my table to have an unique id and to have the rows named sequently. For example: I have 10 rows, each has an id - starting from 0, ending at 9. When I remove a row from a table, lets say - row number 5, there occurs a "hole". And afterwards I add more data, but the "hole" is s...

Can anyone provide a working example of AudioFileStreamSeek for the iPhone?

I find Apple's documentation quite limited on AudioFileStreamSeek and I cannot find any examples of actual usage anywhere. I have a working streaming audio player, but I just can't seem to get AudioFileStreamSeek to work as advertised... Any help tips or a little example would be greatly appreciated! ...

How to create multiple buttons dynamically and handle their separate events? + iPhone SDK

Hi All, Now I am creating a IPhone App. I need to create multiple buttons dynamically and handle their corresponding events separately. Can each button events behave separately, or can I send a variable or an object to a method and depending upon that value differentiate the button behavior. Can anybody point me to how to do that? Plea...