iphone

willRotateToInterfaceOrientation not being called

Hi, I'm returning YES in my view controller's shouldAutorotateToInterfaceOrientation function, and I can see using breakpoints that YES is being returned, however the willRotateToInterfaceOrientation method isn't being called, and nor is any other rotating method. It seems like after returning YES nothing happens! Any ideas? Mike ...

UIView. What is the correct way to remove a subview from a view hierarchy and nuke it

I have a parent UIView with a number of subviews. Periodically I need to remove a subview and completely remove it from the system. What is the correct way to do this? I tried this: UIView *v = [self.containerView viewWithTag:[n integerValue]]; [v removeFromSuperview]; And got bizarre result. Previously present UIViews dissap...

Jailbroken iPhone - root privilages

Hello! I would like to make an app that will manage some files on jailbroken devices like SMS, Notes .db, but I have problems with accessing such files. I've also made just to test my skills, similar application like your file manager and I could browse almost whole file system and access everything except some folders in /var/mobile/Li...

Console and Debugger not working while Unit Testing iPhone in XCode

Hello folks, I am building a logic test suite using Xcode 3.1.4. I am able so far to build the test target and see the results inside de *.m test files as compiler errors (if they fail). The problem is that I can't see any information in the Debugger Console and I can't debug since the debugger does not work either. 1.How can I do to...

Streaming audio to iPhone

Are there any tutorials that discuss how to stream audio from the Internet to the iPhone for OS 3.x? The only one I've seen is very outdated and doesn't compile: http://cocoawithlove.com/2008/09/streaming-and-playing-live-mp3-stream.html. ...

xcode core data: how do I get "computed" attributes?

Hello, I have a entity in my core datamodell, "Tours". Tours has a attribute called "creationDate". In my iphone up, I want the tours to be seen in an table view, ordered by creationDate. This works fine. But now I want to go into master/detail. That is, I want to see in the master table view all Year/Month combinations from my tours en...

What are UILabel's initWithCoder encoded keys?

I have a subclass of a UILabel that overloads initWithCoder and I was wondering if anyone has any documentation on how the coder is encoded so that I might be able to get information that comes from IB myself. Thanks. EDIT Reason for doing this: I would like the font name given in the xib file. Apple's implementation of initWithCoder ...

Possible to initialize an entire UITableViewController (or subclass) from a secondary NIB... not just a UIView?

Nearly all the UINavigationController examples out there show the use of initWithNibName:bundle: to load a NIB containing NOT an entire UIViewController (or subclass) but just a UIView, with the NIB's File's Owner Class property set to UIViewController (or the appropriate subclass) and its view outlet pointed at the UIView. Why is this?...

Threaded drawing on the iPhone

Apples documentation states that in general Quartz2D is thread-safe. However when drawing to an image context during a NSOperation I'm experiencing crashes (EXC_BAD_ACCESS). This is my current setup: UIGraphicsBeginImageContext(imageSize); CGContextRef context = UIGraphicsGetCurrentContext(); // drawing code UIImage *image = UIGraphic...

Rotate Address Book Controller

Hi Everyone: I am wondering if there is some way to rotate a created ABPeoplePickerNavigationController. I am creating the ABPeoplePickerNavigationController like this: ABPeoplePickerNavigationController *addressBook = [[ABPeoplePickerNavigationController alloc] init]; addressBook.peoplePickerDelegate = self; [self presentModalViewCo...

Handling UITouches for different parts of a game open gl ES iphone

A simplified example here: I have a game that I am writing in opengl es. The game has two different screens that do completely different things based on the user's touch input. What is the best way to abstract out the uitouch events from the view? I imagine that in a perfect world the touch events would be handled by my game loop, bu...

Monotouch rotate view in Portrait/Landscape

Can anyone give an example of how to rotate the view of a monotouch application from portrait to landscape and vice versa? ...

Need help designing application with UIPageControl and UIScrollView

I have looked at the PageControl example from Apple and have an architectural requirement difference. In the example the scroll view and page control objects are at the app delegate level. This means the scroll view and page control appears on every view of the application. However, I have a "settings" view toggled from an info button...

Please suggest any good material for opengl programmig with iPhone

Hi Friends, I am just starting with openGL and it found myself disappointed as there is not clear reference at all regarding openGL. Even apple documents and sample codes are not that friendly fro laymen. Can someone suggest me any easy to start kinda reference for openGL ...

Fading out an UIButton when touched

Hi guys, I've got a Selected-state and a Normal-state for an UIButton that both are UIImages. When a button is touched, I'd like it to hit the selected-state and then animate back to the normal-state over the period of one second. I've set the following animation when the UIButton* btn is pressed, but it just switches right back to dese...

sending pre populated sms from iPhone application

Hi Friends My requirements are like automatically sending a list to client through sms from my iPhone App. I did a little googling with no relevant result. all post are regarding opening sms editor using openUrl....but not abt populating the content of sms using some text... Please share your comments.... ...

Objective -c properties - Can't change a subview's color with a declared property

I have a view with a subview whose alpha and backgroundcolor I would like to change through the use of declared properties. I have written some code as below and it works fine to change the alpha, but the background color is not changed when the property is set to a new value. Any help would be appreciated please. @interface MyView ...

Trouble with Multiple Modal Views

The issue that I'm having is that I have My start page, then the user can select a button from there to open a settings page (Modal View). From the settings page the user selects the switch to turn on the PIN code page (another Modal View). I have been killing myself trying to implement this simple process. The app has a Nav&Tab Bar fram...

UIView Hell. Hiding one subview hides them all.

I am apparently in some swirling UIView hell zone at the moment where up is down sibling is parent and my brain is completely fried. Here's the deal. Really, really simple. I have a container view with N leaf node sibling subviews. No tricks here, dead simple. I do the following: // occludedPageSet is the set of view tags correspondin...

Symbols not found error when linking iPhone app in Xcode

Whenever I try to compile my iPhone app which i am porting I get linking errors. The app uses a scripting language called Squirrel (to read the level files, fine by the SDK, no user input). I have linked all the libraries including libsquirrel.a. What am I doing wrong? (App is SuperTux, source code at supertux.lethargik.org for computer ...