cocoa-touch

Pause recording callback for AudioQueue

Hi, I have a basic doubt about AudioQueues, I am using AudioQueue to record and am basically following the SpeakHere app. I found out that whenever I pause recording using the api: AudioQueuePause on AudioQueue object, the recording is not paused immediately. Is there a callback in AudioQueues which intimates the delegate that audio rec...

Calling function in the first view from the other viewcontroller

Hello everyone, I hope that you will succeed in at least a little to clarify me how and what to do, I'm sure I'm wrong, so I really need an expert opinion. I have two viewcontroller together with nibs what I want is to call function that is in first class from another ViewController, the problem is that another viewcontroller manages to ...

How to call a method of another class

I would like to call the method mymethod of class b, using the method currentMethod of class a. How do I do this? ...

An Important Question About NSDictionaries

I have an NSDictionary with NSStrings Some of the valueForKey:@"Key" have no entry so it's (null) NSMutableString* addressDictionaryToString = [NSMutableString string]; // use mutable string! for (NSDictionary* item in address) { // use fast enumeration! [addressDictionaryToString appendFormat:@"%@, %@, %@, %@", [...

Invalid receiver type 'NSInteger' when setting NSInteger property

I get an error "Invalid receiver type 'NSInteger'" on this line in my implementation of a simple class: self.price = p; // this line throws error Should I be specifying price as copy? More details: header file: @interface SafeItem : NSObject { NSString *name; NSInteger price; NSString *category; NSInteger it...

WWDC 2010 Sample Code

Where can I download the WWDC 2010 code samples? I am a registered iPhone developer, but can't seem to find the samples on Apple's site. ...

How to code a Shart/Graph Control in iOS?

I'm looking for a tutorial that shows me how I can create a custom Control for iOS, that draws Graphs. For example, something like in the Stocks App in iOS. Yes, there are many Chart Libraries out there but I find them really complex to learn the code and I just want to learn how I create such a graph myself in Code and how to create a C...

iphone - initializing view controller referenced from application launch

My data is stored in a member variable (NSArray) of a view controller. The problem I'm running into is that my data is loaded from a database on application launch, but the NSArray isn't initialized until later, so the addObject calls silently fail. I've tried putting breakpoints on the init, initWithNibName, viewWillAppear, and viewDi...

UIMenuController not showing up

I'm trying to create a custom UIMenuController and display it in my view. Here's my code: UIMenuController *menuController = [UIMenuController sharedMenuController]; UIMenuItem *listMenuItem = [[UIMenuItem alloc] initWithTitle:@"List" action:@selector(addList:)]; [menuController setMenuItems:[NSArray arrayWithObject:listMenuIte...

UITableViewCell repeats after scrolling

I am not sure why my UITableViewCell's are repeating after the user scrolls? - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *CellIdentifier = @"Cell"; ChartlyCell *cell = (ChartlyCell*)[tableView dequeueReusableCellWithIdentifier:CellIdentifier]...

Using KVO with custom UITableViewCell and CoreData

I've read over a ton of documentation and tutorials about KVO but I haven't found any that I've been able to abstract for my application. I have a table view that uses a custom UITableViewCell class to provide an interface for turning options on/off. The cell has a UISwitch that I would like to "bind" to my model's boolean properties. ...

iPhone: Opening Application Preferences Panel From App

Is it possible to open the application's preferences pane directly from the app, or will users be forced to to go through the Settings app? ...

Help with generating ical ics files

I would like to generate ics files. Are there any libraries or APIs that would be of help please? Thank you ...

changing UIButton.textLabel width at runtime

I want to change some UIButton.textLabel.text at runtime to reflect program states. Specifically, the button is used to make a selection from a list, and the result should be pasted onto the button. It is easy enough to change the text itself, but if the text is longer than the original title text I put in there in Interface Builder, the...

Learning iPhone programming coming from C# background.

Hello All, I would like to put my foot in world of iPhone programming. I got fair bit of experience with C# coding. Should I go and start learning objective-C even before touching cocoa [or] there is better approach (i know nothing about iphone programming). Are there any recommended books / blogs I should go through for my learnin...

Have iPhone App communicate with an OSX app

Is there an easy way to make an iPhone application communicate with a Mac app? By communicate, I mean able to control certain things within the mac application, like control a character on the monitor ...

Rearranging between sections in UITableView

I have a UITableView with 2 sections in it. I have enabled rearranging in my table view, but I have a strange problem. I do not want the user to be able to rearrange rows between sections (I only want users to be able to rearrange rows within their section). If I try to drag a row from the first section to the second section, it will no...

UITableViewCell - displaying accessory view beside rearrange control

In the Safari bookmarks manager on iPhone, the UITableView seems to have behaviour that isn't standard. I'm referring to this: In edit mode, the bookmark UITableViewCells have both a rearrange control and a UITableViewCellAccessoryDisclosureIndicator accessory view next to them. How do you get both? In my table views, when you go into...

How to improve performance of iphone application in wifi environment

Hi All I have developed an application for iPhone, which is continuously interacting with database ... I have observed that it is running fine in 3G environment but in wifi its performance is not good. Can someone suggest what can be the reason for it? or can I do anything to resolve it? Thanks Deepika ...

Help on installing a library like libical into Xcode

I would like to use the libical library in my project, but I have never used an external library before. I have downloaded the libical files, but I am pretty much stuck there. I do not how how, or even if, I need to build/extract them and then how to get them into Xcode. Any help would be greatly appreciated. Thank you. ...