iphone

Intermittent freezing on iPad

Hi, I have an iPad application that builds and runs perfectly the first time. But if I exit the application and open it again, the interface is completely unresponsive. If I exit and open another time, it never gets past the splash screen. What's strange is that if I wait a minute or two before opening it again, it always runs fine. A...

iPhone: Safari vs. launch from "Home Screen" bookmark

What's the difference between these two? Do they both launch Safari (with the exception that the home-screen doesn't show a URL/tool bar? I've found weird quirks that appear in home screen version..do they have different rendering engines? For example, mailto: doesn't work in home-screen mode, and there are some small rendering/css-sty...

Changes to UIScrollView contentOffset don't stick when decelerating

I have looked at http://stackoverflow.com/questions/1493950/uiscrollview-any-thoughts-on-implementing-infinite-scroll-zoom, but it didn't exactly address my issue. I'm puzzled, though, because I would guess that other folks haven't seen my problem, so maybe it has to do with the details of my code. The sample code provided by Allisone ...

XCode and Instruments: How to get the app memory peak

I'd like to show the memory peak (not 'leak', but the highest quantity of memory used in small amount of time) of an iPhone app i am running in the simulator. Where shall i look precisely? PS I am using libxml2 and i suppose that the allocations done by the library aren't considered ...

UIButton : Multiline text.

Hey guys, What would be the best way to implement a multiline text on a UIButton for iPhone SDK 3.2? Thanks! Nicolas. ...

Unexplained memory leak -> _stack_chk_fail

When my app starts up, I get 1 or more 4.00KB memory leaks with the frame being _stack_chk_fail and the library libSystem.B.dylib. Any suggestions on what this could be would be appreciated. Thank you. ...

table view crashes with 'NSRangeException'

I have a table view with a search bar at the top of the page. When I scroll through the table and then press in the search bar, while the table is still scrolling I get a * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (37) beyond bounds (0)' I'm a little lost on what the i...

Modal views and touchesBegan

This question is a follow on from the following: http://stackoverflow.com/questions/3235967/uitouch-event-not-responding I done more research and I know what the problem is, but I don't know how to solve it or even if it can be solved. I may have to take a new approach. I have a RootViewController and from this I load a second ViewCon...

How to create a plain background in UISegmented Control in iPhone

Hi Buddies, I have created scroll view and set the Segmented control as subview. If i scroll the segments and it moves horizontally. I have set, segmentedControl.segmentedControlStyle = UISegmentedControlStylePlain; I got an output like this, But i want to plain background with the segments like this, So is it possible to creat...

How can I set a background image to navigation controller bottom tool bar?

I have a navigation controller and I want to set an image to the bottom tool bar and and I want to add buttons to it how would I do this? ...

xcode duplicates build source files process

I am using the cocos2d library. when xcode builds, it builds twice as many source files as it needs to, i.e. 162 instead of the 81 that come with the cocos2d library. this only happens when i build in release mode on the device, i.e. not device / debug nor simulator release / debug. I have tried clean all targets to no avail. I am us...

Check all items in iPhone UITableView

I have a UITableView where every cell either gets/loses a checkbox or goes to another table view when clicked. For every table, I want to add a check all button that checks off every cell in that table and all the ones inside it. How do I allow one UITableViewCell to toggle the checkbox of every one in it's TableView? EDIT: Removing...

Monotouch data sync - why does my code sometimes cause sqlite errors?

Hi I have the following calls (actually a few more than this - it's the overall method that's in question here): ThreadPool.QueueUserWorkItem(Database.Instance.RefreshEventData); ThreadPool.QueueUserWorkItem(Database.Instance.RefreshLocationData); ThreadPool.QueueUserWorkItem(Database.Instance.RefreshActData); 1st point is - is it OK...

Move an object in OpenGL ES for iOS?

I want to move an object to a specific point on the screen. (Specifically, wherever the user touches, barring any collisions that may interfere.) What OpenGL ES call am I supposed to use for this? ...

CFNetwork and Bonjour integration for iPhone to Mac integration

I want to use CFNetwork and Bonjour in conjunction to be able to have communications between my iPhone app and a Mac app. The app on the iPhone would have one button. Then on the Mac app, there will be a label. If the button is pushed on the iPhone app, the label changes on the Mac app. Is there example code out there that can do this?...

How to detect maximum texture resolution on iPhone?

I'm making an universal openGL based app that should work on ipod/iphone 2G/3G/3GS/4 and iPad. To deliver the best possible graphics I need to switch between different texture resolutions based on what device is running it. For example, iPhone 2G needs textures that is no larger than 1024x1024, while iPhone 3GS can handle larger text...

MPMusicPlayerController stops working after iTunes sync

I know there's a similar question MPMusicPlayerController stops sending notifications, but the answer to that question doesn't solve this problem. I'm using iOS 4, and this happens on both multitasking-enabled devices and non-multitasking devices. I've tested on iPhone 4, iPhone 3GS, iPod touch 2G, and iPod touch 1G. I have a project ...

UITableView Checklist Problem

Hey all, I have this bizarre problem. I'm making a checklist program with XCode and I'm using UITableView with UITableViewCellAccessoryCheckmark. I can select cells and the checkmark will appear, but somehow, other cells that I have NOT yet selected below will also have a checkmark appear. Any ideas? Here's my check mark coding: - (voi...

What is the iPhone screen resolution?

I know this has been asked but I'm still confounded. I'm trying to build a dead-simple page for the iPhone: logo at the top, phone number, address, and a BG that takes up the entire screen (no-repeat). When I ran a script that printed the screenwidth and screenheight I got: 320px * 480px. However, when I created a div of those exact d...

Is it possible to record video with custom audio on iPhone?

So, is there any way I could record video but use my own audio for it with iPhone SDK? Thanks much for all your ideas! ...