iphone

Can Core Data be used for objects with variable schemas?

I'm implementing a new iPhone app and am relatively new to Cocoa development overall. I am at the stage of choosing how the persistence layer of this app will work, and it looks like I'm basically choosing between Core Data and sqlite3. The persisted models in this app are intended to have a schema that is loaded at runtime (from some ...

Wrap words in uitableview, iphone

I am creating an rss feed application. As a sample i have downloaded apples rss feed, but the problem with it is that the words in the table cells are not wrapped. As the contents are of very lengthy, the users may not be able to read the full text from the table unless by going to that link. Instead, I need to display that in 2 or 3 lin...

How to make the subview in a UIScrollView to refresh when we zoom it?

I have subclassed UIView object inside a uiscrollview which displays a pdf page. I can zoom that page. But when I do so, the inside view is zoomed and is getting blurred. I understood that the inner view shud be refreshed and i called setNeedsDisplay. But no change have happened and its the same even now. Below is the code for drawRect f...

What is the difference between "copy" and "retain"?

What is the difference between copy and retain for NSString? - (void)setString:(NSString*)newString { string = [newString copy]; } ...

how can iPhone work as usb device?

Hello everyone I notice that there some apps make iPhone become a remote mouse or udisk. I guess it change iPhone into a usb device. but I really hope to know the mechanism of these app. Is there any sample code to help me to understand? Thanks interdev ...

How to use generic (NSObject) controller with subviews of a UIViewController?

I have a UIViewController that is loading several subviews at different times based on user interaction. I originally built all of these subviews in code, with no nib files. Now I am moving to nib files with custom UIView subclasses. Some of these subviews display static data, and I am using loadNibNamed:owner:options: to load them int...

NSMutableArray not working properly...(count shouldn't be returning zero!)

NSMutableArray count is returning zero after adding objects to it, its been an hour of hacking away trying to figure out why, and I'm still stuck, so that brings me here. Any ideas based off the following code, what the problem is? the object 'search' is a custom class defined in the header set as a pointer, with retain, nonatomic attr...

show a detaildisclosure button to the uitableview without custom cell

How to show a detail disclosure button to the uitableview without using the custom cell. I know its by using the accessoryType: method, but don't know how to implement that..pls help.. ...

"modal" in apple documentation

Apple uses "modal" often in their documentation. Like dismissModalViewController in their titles of methods, or documentation like: "The UIViewController class provides the fundamental view-management model for iPhone applications. The basic view controller class supports the presentation of an associated view in addition to basic supp...

Accessing Instance Attributes from Secondary Thread (iPhone-SDK)

I have a class with an NSDictionary attribute. Inside this class I dispatch another thread to handle NSXMLParser handling. Inside my -didStartElement, I access the dictionary in the class (to compare an element found in the XML to one in the dictionary). At this point I get undefined results. Using NSLog (I'm not advanced in XCode debug...

tutorial for iphone NSUserDefaults

Is any tutorial availabel for state maintanance using NSUserDefaults ...

real time plotting on iPhone using core plot?

I want to use core-plot for drawing line graph dynamically. data won't come at a time, we will be receiving point by point dynamically. Is it possible to draw the chart dynamically using core-plot i.e drawing point by point as on when we receive the (x,y) point? Please help me, Thanks. ...

Optional group with PSToogleSwitch

Hi, I'd like to have a settings bundle behavior similar to the iPhone WiFi settings. If you select the toggle switch and set it to on, an optional group with the specific settings appears. How is this done? I haven't found any clue by now. ...

how to customize navigationbar color of MFMailComposeViewController?

from this code will show in original color how can i change it to another color? maybe it need to be override? MFMailComposeViewController *mail = [[MFMailComposeViewController alloc] init]; mail.mailComposeDelegate = self; if ([MFMailComposeViewController canSendMail]) { [mail setToRecipients:[NSArray arrayWithObjects:@...

multiple uipickerview and uidatapicker

i have a view with many select like checkInDate, checkOutDate (uidatepicker) and age, room(uipickerView)... i want to use showActionSheet to display the different pickerview when click diffrent tableViewCell but i got two problem: the checkInDate and theCheckOutDate can not be show the second time if i use checkOutDate.date = nowDate...

".objc_class_name_CUIFramework",referenced from:

hello, I'm working with developing an application for iPhone in Objective-C Can anyone tel me how to solve this error: ".obj_class_name_CUIFramework", referenced from: collect2:ld returned 1 exit status literal-pointer@_OBJC@_cls_refs@CUIFramework in MF_CoreAppDelegate.o symbol(s) not found I tried to compile my code, i don't have i...

IDE and external keyboard on iPhone?

Hi, I tried this question in another forums, like OS X hints, so I try it here now. I just wonder if there is somewhere available an external keyboard for the iphone, so I can program on the road. And second question, if you know good IDE's on the iphone for programming and compiling on C++ Thanks ...

Implementing Autocompletion in iPhone UITextField for contacts in address book

Hi, I would like to have a UITextField or UITextView in where as I do some input, alternatives will appear something similar to when you type an address in Mail Application, alternatives appear down and is possible tap them so get a better input user interface.(since there is no need to type the complete word or address or phone number) ...

URL in iPhone SMS content.

Hello, I'm developing an iPhone application where SMS native application should open when the user clicks the button. This is working fine and I am also able to copy the content to clipboard when the user clicks on the button. But I want to provide a URL in the SMS content which I am copying so that the user click on the URL to open ...

Playing portion of an audio file on iPhone

Hello! Does anyone knows how to play a portion of a sound file on the iPhone? Using the SDK, or any other library (Cocos Desnhion...). I know how to play an entire sound, but not an exact portion of it (eg. from 2,5ms to 6ms). Thanks! Vincent ...