I've been looking at the API for IOS Programming, and have been reading about view controllers and UIViews. It looks like UIViewController subclasses are really useful for Modal navigation and custom animation, but I can't see any other uses than that.
What is the benefit to using a UIViewController subclasses rather than a normal NSObj...
I've searched all over and haven't found any help...
I built a small test app with two UIViewControllers and their corresponding xibs. Things were fine, then I made some changes to both xibs but when I build and run, I get the old views. I've tried deleting the build folders, running in the simulator and device, cleaning all targets a...
What are the correct ways of initializing (allocating memory) and releasing (freeing) an AudioBufferList with 3 AudioBuffers? (I'm aware that there might be more than one ways of doing this.)
I'd like to use those 3 buffers to read sequential parts of an audio file into them and play them back using Audio Units.
...
I want to build a chat server but i don't know i should use Window service or WCF? Numbers of client of my chat service not a lot, it's about 30 to 40 (Exactly, it's not a chat server, it just a server use to send/recieve data to/from client in local network). Should i use Window service or WCF?
...
Hi. I'm making my first iOS application to be run as an adhoc release on an iPad as part of a university project.
I need to have a configurable file somewhere within the source for setting price constants that are to be accessed from multiple subclasses of a superclass.
I'm wondering what is the best way to store these values, as there...
Here's the thing: in my iPad app I'm playing a video using MPMoviePlayerController, the movie player's view is a subview of my main view and I have another semi-transparent view on top of the video view.
What I'd like to do is redraw my transparent view every time the video view is updated, because the content of that view depends on th...
My iPad app uses a lot of UIWeb views to display content. The user clicks small images with links to pull up a smaller view with additional content. When you tap a link in a UIWebview, the link highlights gray for a moment to indicate the click. In the case of links in an in an image, the whole image rectangle flashes gray for a moment, ...
In cellForRowAtIndexPath I am adding a UIImageView to cell.contentView. The problem is that when the cell scrolls off the screen and back on, it adds the same image again on top of the one that is already there. This happens continuously until I get a very stacked-up blurry image.
Do you have to keep removing any image views that you a...
Hi I'm developing a simple writing program using UITextView to study Cocoa programming.
In UITextView, each line has different number of characters.
I tried to change fonts of UITextView, but the width of each character seems to vary. For example, l and L has different width.
Is there anyway to keep the same number of characters in each...
I know how to do it the other way around, but cannot figure out how to get a core video pixelbuffer from an image.
Bonus points for a code sample showing the use of pixelBufferPools with an AVAssetWriterInputPixelBufferAdaptor. I have not found any samples or any real use case in the docs.
...
I have some lines of Objective-C code like:
ABAddressBookRef addressBook;
CFErrorRef error = NULL;
addressBook = ABAddressBookCreate();
ABRecordRef group = ABGroupCreate();
ABRecordSetValue(group, kABGroupNameProperty,@"My Group", &error);
ABRecordRef person = ABPersonCreate();
ABRecordSetValue(person,kABPersonFirstNameProperty,@"Huy 1...
Hi,
I have to use a calendar in my iphone application. I tried hard but could not find any inbuilt API in iphone sdk for this purpose. Now i am going to create calendar by myself and need some guidance for it.
I have created 5 rows of 7 buttons(i.e, 35 buttons in all) and will be using it as the date and then later i will add other gr...
I have an iPhone app for photographic purposes (kind of a lightbox). This app needs as much brightness as possible. Is there a way to change the screen brightness programmatically, and then restore it back some time later?
...
I am working on an iPad app (which will not be submitted to the App Store) which supports only landscape mode.
Most of the views in the application are pushed onto a UINavigationController with a hidden navigation bar.
When I add the following code in the top view controller in the aforementioned UINavigationController, the new UINavig...
I'm working on a navigation based app, and I chose it so that I can push and pop controllers on and off the stack. It's easy enough to move forward - just push a new controller. And moving back is easy as long as you go to the root view controller. There is a method called popToViewController:animated, but I didn't create the controll...
My company is building an app with SDK 4.1 for the iPhone.
To do this we have 3 levels of project dependencies, our main App "CSM" is linking to our SDK called "csm-sdk" (in libsrc_csmsdk.a) csm-sdk then links to our XMLRPC library ("libXMLRPC.a").
When compiling csm-sdk for the device, it include definitions for all of the ObjC classe...
Is MPMediaItemCollection.representativeItem ever supposed to be nil? The reference documentation doesn't indicate what a nil value means.
...
I want to write a program that will generate random notes and draw them on the screen on a staff. I want to use Cocoa or Cocoa Touch. What's the best way to go about displaying the notes? Should I somehow use a music font, or pngs of each note, or what? Are there any good tutorials or sources of info out there on this topic?
...
I have a UIBarButtonItem that just doesn't want to get disabled. Short version: when I call
[myBarButtonItem setEnabled:NO];
Nothing happens.
myBarButtonItem is an IBOutlet in myVIewController. myViewController has been added as an object to MainWindow in Interface Builder. The myBarButtonItem outlet has been connected to the BarButt...
A media publishing company has an existing inventory of advertisers for their traditional media channels. Their iPad app is doing very well, and they want to use their inventory for in-app rich advertising.
I can't find any rich ad solutions that allow self-management. AdMob is the closest so far, but it's not true rich media: http://ww...