ios

iPad book framework/platform/pattern available?

Hi, I have just started with iOS development (getting close to finishing my first app). For my next app I want to convert a children's book that my wife wrote and illustrated into a free iPad book. I am wondering if anyone knows of a framework that would provide me a lot of the basics for handling page turns, basic audio, maybe a tab...

Dismiss other popovercontrollers for ipad app

My program has four PopOverControllers. How can I make sure that when i open one of them the other three are closed? ...

Apple binary plist and/or keyed archive file format documentation?

Are Apple's binary plist format and/or the related keyed archive format actually documented anywhere? I know that there is Apple open source code for binary plist parsing out there, which is a good start, but reverse-engineering the format and its revisions from that is less than ideal. Is there any actual explicit documentation on thi...

Dealing with deprecated methods in iPhone

How do you deal with deprecated methods in iPhone that require you to use a newer method, not available in older versions? Consider the case of setStatusBarHidden:animated:, which was deprecated in iOS 3.2. The documentation points you to use setStatusBarHidden:withAnimation:, which is only available in iOS 3.2 or later. If I understan...

on iOS, how can I shift navigationItem.leftBarButtonItem horizontally right?

A cusomized UINavigationBar requires me to present a customized "back" button, I use navigationItem.leftBarButtonItem = myCustomizedButton, but its position is fixed. Would anyone be so kind to share how can I shift this button 40pixels to right? ...

What UIViewController method is called when opening app from background?

Hi, Is there any conventient way of determining if a view is being loaded from the app being in background mode? In 3.X I would rely on viewDidLoad to do some initalization etc., this however is not the case for 4.X, as you cannot rely for the viewDidLoad method to be called. I would like to avoid putting in extra flags to detect this...

How can I programmatically increase the height of the cells in my UITableView?

Hello. I'm diving into iOS development and I just finished reading Apple doc "A closer look at table view cells", but I couldn't find the answer to my question. If I have a UITableView in one of the views of my iOS app, how can I increase the height of the cells? I assume this is something I would do in the cellForRowAtIndexPath deleg...

Can I create a breakpoint in code in iOS, like `__asm{int 3}` on VC++, and continue execution after it's been hit?

I'm trying to put the equivalent of asm{int 3} (or similar) into my iPhone program. My goal is to have Xcode stop exactly on the offending line, without having to fiddle with the call stack (so _Debugger doesn't sound like it would do, not that I could find which framework it's in anyway...), and leave me able to resume execution (which ...

Cookies in UIWebView

I have a UIWebView, and I don't want it to store an cookies, so just before the webview is loaded I do: NSArray* cookies = [[NSHTTPCookieStorage sharedHTTPCookieStorage] cookies]; for (NSHTTPCookie *cookie in cookies) { [[NSHTTPCookieStorage sharedHTTPCookieStorage] deleteCookie:cookie]; } Checking the count of cookies is 0 so the...

UITAbleView hidden header?

How do I make a header for a UITableView that is viewable when the UITableView is pulled down, but it hides when the UITableView is released? (Like the twitter app for iPod) ...

question about reading data from urls on iphone/ipad

I have an app which uses a UIWebView to load a webpage, I then parse the links (triggered by a call of webViewDidFinishLoad) from that webpage and load all these html files using NSString initWithContentsOfURL. This works, but it takes forever to load the links... even tho I've clocked how long each initWithContentsOfURL call takes and t...

Is kAudioSessionCategory_AudioProcessing unavailable on the iPhone simulator?

I understand that some Audio Session capabilities are not available in the simulator. Is that why AudioSessionSetProperty is failing for me on the simulator when I try to set it to kAudioSessionCategory_AudioProcessing? Everthing works fine on the actual device. ...

An IDE in my pocket?

Hey all, Does anyone know of an IDE for editing files such as PHP, HTML, and CSS through a SFTP connection? I have both an android device and an iOS (version 3, that is) device, and the only result I get for an application like this in both marketplaces is in the App Store. It didn't seem particularly appealing (also, it required a...

iOS - Initialising an Array from a file

Hi, I am trying to initialise an array from a file This is the file containing an array of strings .. this is the xml file <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"&gt; <plist version="1.0"> <array> <string>ccccc</string> <string>ddddddd<...

How to get audio volume level, and volume changed notifications on iOS 4?

I'm writing a very simple application that plays a sound when pressing a button. Since that button does not make a lot of sense when the device is set to silence I want to disable it when the device's audio volume is zero. (And subsequently reenable it when the volume is cranked up again.) I am seeking a working (and AppStore safe) way ...

Objective C Project using C++ POSIX Classes

Hi, I have to create a iOS Programm using Code of some C++ POSIX Classes. I already read the "Using C++ With Objective-C" manual of the Apple Developer Center. They describe how to mix C++ & Objective C code in a .mm file. My question is, is there any possibility to use the C++ Classes in my .h/.m files of a normal Objective C Project?...

ZSync tutorial - Syncing CoreData data between devices

I am interested in syncing CoreData data amongst several apps running on iPhone, iPad and MacOSX. I found ZSync project from Mr Zarra but did not find any related tutorial. I contacted Mr Zarra who is always working on improving ZSync (thanks for that) and do not have planned yet to write a tutorial. Any of you have implemented ZSync fu...

OpenGL ES color picking on the iPhone

I'm looking into 3D on the iPhone, I have managed to get a 3D cube on the device but would like to add interactivity such as touching one face fires a specific event and an other face a different event. I'd rather steer clear of ray picking as this adds extra complexity that I do not want in my app. I've read up on quite a few color pic...

Does the iOS SDK provide queues and stacks?

I'm writing an iPhone app, and I'm surprised that there seem to be no NSQueue or NSStack classes in Apple's Foundation Framework. I see that it would be quite easy to roll my own, starting with an NSMutableArray, so I'll do that unless I've missed something. Have I missed something? ...

Direct "rate in iTunes" link in my app?

I've seen posts here on Stackoverflow that describe how to allow users to be directed to apps on the app store. Is there a way to link directly to the rating and comments form in the App Store? ...