iphone

Cross-compile Apache Portable Runtime to the iPhone

This is a followup to a previous question on cross-compiling for the iPhone: http://stackoverflow.com/questions/1602182/cross-compile-autotools-based-libraries-for-official-iphone-sdk Basically, I am trying to compile the Apache Portable Runtime (APR) version 1.3.8 (latest) for the iPhone. I am currently running into the following error...

Customize UIMenuController

Hi I want to create a customize bubble menu, like cut/copy/paste menu, in IPhone SDK3.x. I know it is UIMenuController but it is only provide standard cut/copy/past menu. Anyone know how to make a bubble menu similar like this. Any example and code for reference? ...

ScrollOffset in UIWebView?

Hello, I'm having a really hard time understanding delegates and object inheritance (if I may use this word) and I think I need a simple (or so I think) thing: catch scrollViewDidScroll event in UIWebView and get offset (basically, just to know if scroll is not on top/bottom, so I could hide navigation and tab bars). Is there any way I...

Draw a white line in opengl es

I have an image. Over it I draw a semi transparent polygon. Over the semi transparent polygon I draw a line. I cannot seem to get this line to be white. It is almost as though it is blending with the image or polygon. glColor4f(1.0f, 1.0f, 1.0f, 1.0f); glDrawArrays(GL_LINE_LOOP, 0, area.polygonShapeData.totalPoints); What could ...

Setting a cookie in an iPhone App

Is it possible to set a cookie in an iPhone Application that persists, so that later when the user is in Mobile Safari, that cookie can be sent to a webserver? ...

Consuming Vista .NET Localhost Webserices Over Wifi Network From Mac iPhone Project

I have SQL Server Express and Visual Studio Web Developer Express running on my PC. In visual studio I created a web service that runs on the localhost. On my Mac I have an iPhone application that consumes the web service. Can I connect to the PC's localhost web service inside my iPhone application? What would the URL to the web serv...

Possible issues with upgrading to Snow Leopard / XCode 3.2?

Hi all, I'm one of a pair of programmers working together on iPhone / iPod applications. I'd like to upgrade to the new version of XCode (3.2) and Snow Leopard, but chances are my partner won't. Can anyone highlight any problems we might have sharing code? Are there incompatibilities between the old and new, or should we be able to s...

applicationWillTerminate normal exit vs ad exit iPhone question

Is it possible to determine when an app is closing whether it is done by normal means (home button) or because an ad was clicked (admob ad for this example)... Admob doesn't have anything that would help accomplish this goal does it? Any ideas where to start would be greatly appreciated... ...

iPhone UITableView + Rotation = Disappearing Tables ?

I'm trying to replicate Apple's "Edit Details" functionality, where a grouped UITableView is shown with 1 row, and the entire cell is one big UITextView. For an example, go to the Contacts app, edit a contact, and add a Note field. That's what I'm going for. The problem I'm having is when you rotate the phone. The first time you rotate ...

iPhone + UITableView

Hello, I am having UITableView in my application, I want to do formatting of it, like change the height of rows in table, change the font and colors of text in cells etc. Can anyone help me ...

A question on how to Get data from plist & how should it be layout.

This is a follow up question on my first queries regarding retrieving data on plist. Right now i have manage to detect users touches made on my view with random image call out (thanks to phytonquick). CGPoint currentTouchLocation = [currentTouch locationInView:self]; Im having trouble now on how to compare the value i got from the use...

iPhone One controller, multiple views

Hi I'm rather new to iPhone development, and am wondering how to load multiple views from a single controller. I come from a c# background and still trying to get my head around how things work in ObjC and the iPhone worlds. As a basic example of what I am trying to achieve, lets say I have a ClockController, the clock controller has ...

Receiving object from memory address on iphone

Hi I'm using 'malloc_error _break' to break on double free error. The stack trace does not lead me to a specific line or object (only to the assembly code). What I can see is the object address: ...malloc: *** error for object 0xfa1340: double free How can I find which object this address represents? (0xfa1340) (I tried to find it...

SouthWest and NorthEast Points

Hi all I am developing an iphone application which uses google API's.I have a set of latitudes and logitudes .I need to find the South west and North East points from these points .How can i do this? thanks in advance ...

Sort NSArray by NSDate, today

Hi, I have loaded item from core data in an NSMutableArray. Each item, when created, is given a due date, that the user choices. How do I sort, so only the item that is due today is displayed? Here is what I got so far: NSPredicate *predicate = [NSPredicate predicateWithFormat: @"dueDate == %@", [NSDate date]]; [allObjectsArray ...

AVAudioPlayer with external URL to *.m4p

My Problem is the following. I got this code and i guess a corrupt NSURL since the AVAudioPlayer is nil after initializing: NSString *dummyURLString = @"http://a825.phobos.apple.com/us/r2000/005/Music/d8/a8/d2/mzi.jelhjoev.aac.p.m4p"; NSError *error; NSURL *url = [NSURL URLWithString:dummyURLString]; AVAudioPlayer *player = [[AVAudioPl...

Objective C - Problem with NSMutableArray and NSTableView

I have a class named Person and in this class is the property PersonName (amongst others). A MutableArray MyUserInfoArr contains many Person objects. I want to list each PersonName in a Cell of a TableView? How do I do this? Thanks in advance. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath ...

How to prevent the view controllers in a tab bar controller from rotating?

I have a tab bar controller managing 4 tabs. I have subclassed the tab bar controller so that the shouldAutorotateToInterfaceOrientation: method only allows a specific view controller in one of the tabs to rotate. Everything works almost fine: the controllers in the remaining tabs do not rotate. However, when the view controller which is...

Cocoa Touch - how do I correctly assign a new value to a pointer w/o causing a memory leak?

I've just completed my first simple iPhone app; I'm using Instruments to find memory leaks. I am a little lost as to how to reuse pointers. I have read the Apple documentation, but I still don't understand the correct procedure. The Apple docs say, "Another typical memory leak example occurs when a developer allocates memory, assigns ...

Play downloaded m4p with AVAudioPlayer or MPMusicPlayerController?

Hey guys, I got an *.m4p-file reachable via a http-URL and want to play this in my iPhone App. First I tried to use the [CODE]AVAudioPlayer[/CODE], but it does not seem to support m4p-format. Am I right here? Then I wanted to use the [CODE]MPMusicPlayerController[/CODE], but this one only can play songs located within you iTunes Librar...