iphone

how to add tabbar items in navigation controller?

hello... I am working on navigation based apps...firstly when i press alert button..its shows label,button,image and below tabbar items...how can we add tab bar items? ...

Sorting global data alphbetically

I am storing the parsed xml values as Global data in Mutable Array some thing like this... .h file @interface GlobalData : NSObject { NSMutableArray *array; } @property(nonatomic,retain) NSMutableArray *array; (id)sharedData; In .m file static GlobalData *sharedGlobalData = nil; @implementation GlobalData @synthesize array;...

Calling a Method in viewDidLoad()

Hello Users, I have a little Problem, i have implemented the following method to open an Image: - (void)ladeImage { id path = @"http://172.23.1.63:8080/RestfulJava/pics"; NSURL *url = [NSURL URLWithString:path]; NSData *data = [NSData dataWithContentsOfURL:url]; UIImage *img = [[UIImage alloc] initWithData:data]; UIImageView *imgView...

How to store the time period(duration) of a captured video in iPhone ?

Hi Guys, Thanks to all for responding to the questions which I Posted. I got one problem that is, While capturing the video in the iPhone, I don't know how to store the time period (duration) that I captured video with iPhone. Can any one solve my problem. I am using the following code for capturing. -(void) RecordVideoWithCamera { ...

Compiling the same Xcode project for iPhone and iPad with different xib files

Hi! I would like to know if it's possible to compile the same Xcode project for both iPhone and iPad, automatically changing the xib file according to the platform. The project will contain both xib files. If this is possible, how can be done? Thanks ...

Plist contains the "&" character

I'm having a plist file which has some values with the "&" sing for example M&I, when i save the file to document folder and load it from their,i'm getting empty dictatiory, any idea to how to fix this issue. ...

slider gallery with touch recognition.

HI i was following this example to create a slider gallery "http://lievendekeyser.net/index.php?module=messagebox&action=message&msg_id=1351" But i stuck at one point. what i am trying to do is, when user double tap on current image, it should navigate to another view, like to view B. But i am not able to navigate and detect d...

problem in drawing line.

brushSize=1.0f; UIGraphicsBeginImageContext(self.view.frame.size); [drawImage.image drawInRect:CGRectMake(0, 0, drawImage.frame.size.width, drawImage.frame.size.height)]; //originally self.frame.size.width, self.frame.size.height)]; CGContextSetLineCap(UIGraphicsGetCurrentContext(), kCGLineCapButt); //kCGLineCapSquare, kCGLineCapButt, kC...

Scalling UIImage on the screen size

Hello People, i have implemented a small method that imports an picture on the iPhone screen, but the picture is a little bit to big for the screen. This is the Method: - (void)ladeImage { id path = @"http://172.23.1.63:8080/RestfulJava/pics"; NSURL *url = [NSURL URLWithString:path]; NSData *data = [NSData dataWithContentsO...

iPhone: UISwitch text in non-English language is I/O instead of ON/OFF in some languages

Hi All, UISwitch text shows ON/OFF in English. When I switch language to Japanese, UISwitch shows localized version for ON/OFF text. But, when I switch language to German, UISwitch shows I/O symbols instead of German-localized ON/OFF text. Why is not the behavior consistent across all non-English languages? Is this a bug? Please let me...

problem with CCRepeatForever

I have an object that moves with CCBezierTo. CCSprite * bedrumotic = [CCSprite spriteWithFile:@"9_bedrimotic.png"]; [bedrumotic setPosition:ccp(100, 800)]; [self addChild:bedrumotic z:4]; ccBezierConfig bezier1; bezier1.controlPoint_1 = ccp(300, 950); bezier1.endPosition = ccp(500, 800); id move1 = [CCBezierTo actionWith...

[iPhone] hide status bar in landscape mode leave a blank space when rotating

Dear all, My application support to display some screen in landscape mode, and in landscape mode, I set to hide the status bar to get mode space to display data. The problem is while hiding the status bar and rotate screen, it leave a white pace at status bar position until the screen is rotated completely as below screenshot. I gue...

UITableView Scroll slowly

i got the problem in my apps, i have UITableView and it's scroll slowly, not as fast as the other application, even i didn't create any object or add subview in my table this is my code : - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *searchingIdentifier = @"...

change Label position at runtime

How to change UILabel position at runtime ?? Thanks. ...

How will you invoke other apps from the native iphone app?

Hi, How can i invoke an app from a native app?I want to invoke my app on clicking a mail from the native mail app.For example native mail app list staza app and good writer app when you want to view a pdf file , that is in your inbox.So what weshould do if we want to display our app also in that list.Please help me out.Thanks. ...

Refreshing subview of uiview?

hi... I want to refresh the uiview which has uiimageview and uilabel as a subview of uiview. I don't know how to do this.Plz help me out to do. Thank u... Renya ...

Program for iphone push notifications

Hi, I'm trying to send push notifications to an app. The program, PushMeBaby, which a co-worker of mine used does not seem to work anymore. I get an -909 error from the SSLwrite command. I couldn't figure out the meaning of it. Does anyone know a good tool/program that sends push notifications to the APNs-server? or has anyone know, wha...

(UIView *)hitTest problem?

Hi, I have one Masterview.it has lot of childviews.I am using the following code to detect the touched view and to bring front the corresponding view.the code works fine.But When I add subview to childview,it did not work , any help please? - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event; { self.hitView = nil; self.h...

Is it possible to embed non-fullscreen video in an iPhone app?

I know in the old days of iPhone OS 2.x this was clearly impossible. But how about now? Did they finally find a way to enable this? I need to play a movie in a small region of the screen. About 250x250 points only. ...

Quick one about Updates in App Store...

I've got an app that works in ios3 (3.0 - 3.1.3), but they've deprecated some of the code in ios4. The problem is, if I update to the ios4 code (3.2 -) it will no longer work in the older phones. If I release an update that is for ios4, what happens to people who have the ios3 version? Does it say "sorry you can't have it"? Does it let ...