objective-c

How to built select box and check box by using objective c

Hi everyone, Can I know how to build a select box and check box with objective c? ...

traverse Core Data object graph with added predicate?

I want to load a client object and then pull their related purchase orders based on whether they have been placed or not, purchase orders have an IsPlaced BOOL property. So I have my client object and I can get all purchase orders like this, which is working great: purchaseordersList =[[myclient.purchaseorders allObjects] mutableCopy];...

objc: avoid protocol method name conflicts?

Hi all, I define protocol with a method name is: - (id)initWithDelegate:(id <Foo>)delegate; While in my project, there also has a third party protocol (in different class): - (id)initWithDelegate:(NSObject *)delegate; In another class, which imports both protocols, I just use the second method: id thirdPartyObject = [[Thir...

Sending email from iPhone with predefined email address

Hi, I'd like to make it so the user can send an email address which comes from a predefined email address. So the user does not specify the email address. However, I'd like it so they do define the recipient's email and the content of the email address. This is what I tried using earlier, which goes through the Mail client: NSString ...

Customize the back button of a navigation controller

I want to have two buttons on the left side of the navigation bar, one is the regular back button and the other one is a UIBarButtonItem. However I could only get it to replace the default back button. I've tried many code samples on the internet but couldn't get any to work. please help ...

iPad videoPlayerDidFinishPlaying callback method not responding

Hi Folks, I am facing a problem in ipad video incorporating. My code works fine I mean it plays the video, but once the video reaches to its end. The callback method is not called. This method is called when play video button is pressed. -(IBAction) playVideo : (id) sender { [self initPlayingVideo:@"toyVid.mp4"]; } This method han...

Hide the tab bar in a tab bar application

I have created a new project from the template: IPhoneOS>Application>Tab Bar Application. I get two tabs. How can I make the second become a full screen hiding the tab bar and even the status bar? I tried to check the "Wants Full screen" - but it didn't help. (Much less important... When I do get a full screen I do I get back?) Ple...

Multiple columns in Tableview

How to create multiple columns in row of the tableview? it would be grateful if give any samples or please direction me! ...

How can I handle custom events in iOS development?

We're working on a project using some custom views. We have the following hierarchy: UIViewController -> UIScrollView (custom subclass) -> UIView (custom subclass) We are presenting a grid of buttons that are dynamically generated. When a user taps one of the UIViews that belong to the custom scroll view we fire a method that looks lik...

Generate PDf in Objective-C

HI Guys, Do you have an idea how to generate PDF file in Objective-C and reading it? Thanks, ZaldzBugz ...

Image / Voice Recognition in Objective-C

Hi Guys, I am developing an application with Image and Voice recognition. Do you have any source or idea how to do this? Thanks, ZaldzBugz ...

How to set notification in iPhone

I have create a custom UIWebView. On some class if I include my custom UIWebView, I need know if web view load is complete or not. I can get this in custom class using webViewDidFinishLoad, but how do I transfer this to Main view where I have add this Custom UIWebView. I need to enable some button when WebView is loaded. I hope u can u...

iphone core data save not working

Im trying to save a list of Device classes (a custom class) using Core Data and retrieve it. But After I save it, my query, which is VERY simple, doesnt return any records. My call to save the records always returns YES and no errors: BOOL resultOfSave = [managedObjectContext save:&err]; My predicate for searching by the property use...

Changing the Color Space of NSImage

Hi everybody. Is there a way I can change the color space of an NSimage or NSBitmapImageRep/CGimage or the like. I am open to any way. Preferably the way photoshop does it. ...

EXC_BAD_ACCESS when loading NSArray from .plist

I have a plist written from a NSMutableArray by [NSMutableArray writeToFile]. When trying to load that same plist with the following code: NSArray *testArray = [NSArray arrayWithContentsOfFile:[self pathForDataFile:@"reportingSpeicher.plist"]]; NSLog(@"count = %@",[testArray count]); I get bad access on the count or on any other opera...

Iphone Orientation Issues

I have an application with the a sructure as follows UITabBarController (3 tabs) UINavigationController (in each of the tabs) UIViewController (in each of the Navigation controllers) In it I want some of the UIviewControllers to be able to switch to both landscape and potrait modes for example In Tab 2 I have a Picture Gallery...

How to compare the NSString *

Hi, everyone, I want to compare 2 NSString *. I use the [[arr objectAtIndex: i]compare: @"compareString"] . However, it does not work in my program. What wrong of the problems? ...

extract data from plist & then store permanently on tableview's cell iphone ?

Hi All In my application one is mainviewcontroller which is subclass of uiTableviewcontroller holds data from plist when clicked on a particular cell its displays detailviewcontroller(dvc) which is subclass of uiviewcontroller. dvc holds textfield & button .actually when i clicked on button i write textfield's text on tableviewcell throu...

Load framework only when found (For example CoreTelephony.framework)

Hello The application I'm currently developing needs to show the carrier name on a screen. I know how to achieved this with the CTCarrier class from iOS 4.0. But unfortunately my app needs to also run on the older system versions (back to iOS 3.0). This is a requirement I cannot change. From the code this should not be a problem, as I ...

Problem with non-transparented buttons on a transparent scrollview

Hi all. I have created a scrollview, and some button are placed on this scrollview. And scrollview is transparent with alpha = 0.5. The fact that my buttons are also transparent despite they are set to alpha of 1 and their opacity is set to YES. And I khow that I added any subview to any superView view then the properties of superview sh...