iphone

What does this error mean (while event modification)?

Hi all I am using below code to create an event : EKEvent *oneLabEvent = [EKEvent eventWithEventStore:eventStore]; oneLabEvent.calendar = eventStore.defaultCalendarForNewEvents; oneLabEvent.title = [ddEvent valueForKey:@"ddname"]; oneLabEvent.allDay = NO; oneLabEvent.startDate = [ddEvent valueForKey:@"startDate"]; oneLabEvent.endDate ...

objective-c get last 2 characters of a string?

Say I have a string: NSString *state = @"California, CA"; Can someone please tell me how to extract the last two characters from this string (@"CA" in this example) ...

how to handle the interruption in iphone

Hey friend , I have problem with AVAudioPlayer in iphone when ever the my ipod is lock(sleep) the song is stop.What I have do in coding for making music is continueslu start even the ipod is lock(sleep) . please help me I am totally new in this . ...

UIScrollView - scrollRectToVisible - showing a button at the center of the screen?

Hi Forum I have a uiscrollview with tons of buttons in it. What I need to do is show one of these buttons at the center of the screen. When I use scrollRectToVisible (passing the button-frame), the scrollview indeed shows the button - but sometimes at the top-left corner, sometimes at the bottom right corner - apparently depending on w...

Grabbing text from files

Still working my way through this program. Next task on my to-do list is selecting random words from a pre-generated list. I've got the randomisation code sorted, but I now need to know the best way to store and retrieve words from my big list (and it is a fairly big list - over 220 words). Since I'm designing for iPhone, memory is a pa...

getting subviewview's cooridnates in root view coordinate system

I have a root view that contains several subviews("groups") that contain several subviews inside of them ("group elements") (so every subview of my root view "groups" a set of UIViews). I want to be able to drag out each group element out of a group and get its "absolute" coordinates (i. e. position of the element expressed in root view'...

Program for capturing iphone screen during video games execution

Hi, I was wondering how it is possible to capture what's shown in the iphone screen while playing a video game. I know that this can be done and that there have to be special programs for this since there are many sites out there that present a video review of iphone games. Thanks for the help! ...

Add views inside Iphone application

Hey all i've tried to add an other view it work properly but it look like a tableview I want it just like the first one how can i change the view to be like what I want not tableview btw this is my flip button code : - (IBAction)flip:sender{ // create a new SecondViewController SecondViewController *playback = [[SecondView...

Objective C Encapsulation

Hi All, I will explain my question from an example. In .H file// @interface Employee:NSObject{ @private NSString *name; } @property(nonatomic,retain) NSString *name; in .M file// @implementation{ @synthesize name; } In this scenario when i access the name property within another class , like myEmp.Name = @"John"; it doesn't...

Gray status bar out UIAlertView style

How can you "gray out" (overlay a gray view w/ alpha ontop of the UIStatusBar) on the iOS exactly like when a UIAlertView displays. I know that it's possible and that Apple allows it since Twitter (official Twitter app) and a few others implement it. I think you need to add a new window ontop of the current window or a full-screen view ...

how to integrate Paypal in iphone App.?

Is there is way to integrate PayPal in iPhone native app. ...

How to replace whitespaces by a plus "+" sign

hey all i want a code the replace whitespaces by a + sign in objective-c ...

Difference between running Iphone app through Xcode and running it through the Iphone

Hi, I'm having some strange behaviour ocurring when I try to run my Iphone app without using Xcode. If I run it by choosing Build & Run in Xcode it runs just fine, but if I do it by disconnecting the USB cable and tapping on the app on the Iphone, it crashes, yielding an unhelpful crash log. Is there any difference between these 2 scena...

AVAudioplayer should automatically switch to next song

Hi to all, i have created a music application in which there are 90 songs.when i click on a particular song it plays. i need that when i click on a particular song it should switch to next song automatically when the current songs completes.Please help me in solving this problem ...

Determine iPhone device at runtime

Is ther any way to perform a runtime check for the iPhone device at runtime? It has to be able to differenciate iPhone 4 from other iPhone/iPod touch models. Any workaround that does the same thing is OK too. ...

TextView how-to?

So I have an textView and need to have the same control over it as a regular textField. I am quite new to iPhone-programming so please be nice to me. :) What I need is functions like: textFieldDidBeginEditing textFieldDidEndEditingWithoutText How can this be done? ...

iPhone iOS4 - how to work with address book and calendar?

I need to know how I can access my calendar and contacts from my iPhone from my own App? Is it possible? I need it because I created a stats App and need to know how many contacts and calenders posts the phone has. ...

How can I change the background image for my NavigationBar on a per page basis?

Hello. I've looking around for a way to change the background image of my NavigationBar and control the appearance of my NavigationBar as the user navigates the app. I've been looking around and it appears the accepted approach for changing the background image is this... @implementation UINavigationBar (UINavigationBarCategory) - (v...

iPhone SDK: AdMob ads not appearing?

I am trying to display ads from AdMob. I've tried to follow the standard instructions for implementation. However, I am receiving this error message and no ads display. AdMob: Did fail to receive ad in AdViewController Can anyone help? ...

tagging a cell for identification in a selected tableview

how is it possible to tag an iphone cell in order to be able to use in a selected favorite table view. i want to be able to tagg the cell and its remaining content in order to be able to display it properly inside a new table view under a different view controller. ...