iphone

How to update a UILabel frequently?

Hey guys, I am currently working on a project where I request and parse multiple html sites in a controller. To give some feedback to the user I have created a second view, which gets displayed during processing of the data. It displays a status label and a progressbar. In my controller I have several points where I update my labels tex...

iPhoneOS4.0 Wifi Scanning problem.

I have just started to make a iPhone Wifi scanning app. I have searched a lot websites, finally I have the recent code the below. Someone told this is working for iPhoneOS4.0 well. libHandle = dlopen("/System/Library/SystemConfiguration/WiFiManager.bundle/WiFiManager", RTLD_LAZY); open = dlsym(libHandle, "Apple80211Open"); bind = dl...

How to set up UIScrollView in Interface Builder with UI elements outside the main iPhone view?

I am building a data entry form in my iPhone app, and there are more data fields than will fit on the screen. I figured I should put them into a UIScrollView so that the user can scroll through the form. What's the best way to build this in Interface Builder? I know that I can do it programmatically, but I'd like to do it in Interface Bu...

How do I cause a telephone call to be made in the background in iOS 4.0?

I would like to be able to make a call from within my application, but have it start in the background using the new features in iOS 4.0. I tried using the following code: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://09650159343"]]] but this causes a call to be made in the foregro...

Changing the volume without a volume slider on an iphone

Hello guys I need your help. How should I proceed to change the sound volume in my app. I don't want to use a volume slider. Instead I have an UIImageView which is a volume knob, in which I rotate clockwise to increase, and anti clockwise to decrease the sound volume. The rotation is just an animation and I've already done that part. I...

View is not gone, sometimes

There is a very hard issue I'm trying to pursue. In the viewDidAppear: I have the following code: if(dataSourceCount > 0) { [scrollView setHidden:NO]; UIView *ndView = [self.view viewWithTag:204]; [ndView removeFromSuperview]; self.noDataView = nil; infoBtn.hidden = NO; } else { [scrollView setHidden:YES]; [[...

How do I call this methods with a parameter in ObjC

Hi everyone, I'm quiet new in ObjC and app programming. All I want to do is fade in an image. For that I did this: -(IBAction)changeImg:(id)sender{ myImgView.image = [UIImage imageNamed:@"image.png"]; myImgView.alpha = 0; [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1]; myImgView.alpha = 1;...

Send a NSString with \0

I am trying to send a string terminated with \0 to a tcp socket but it seems the \0 does never reach its destination. Using this code: NSString* s=@"<b/> \0_"; uint8_t *buf = (uint8_t *)[s UTF8String]; int resCode = [outputStream write:buf maxLength:strlen((char *)buf)]; I only seem to send @"<b/> ". Probably the \0 is seen as the ...

Any good documentation on Apple's PastryKit framework?

I've been looking and looking, but I haven't been able to find any documentation or tutorial on how to use Apple's PastryKit framework. I know Apple hasn't released it officially so no documentation should be out there, but does anyone know of some guide or anything that someone made on his own? Also, does anyone know what license the f...

Open GL : Changing Brightness and Contrast of the Image

I have one module to implement in which I have to change the Brightness and Contrast of the Image for IPhone. After ref some samples like GLImageProcessing , seems need to go with Open GL (In this sample, we can able to do one activity at a time either brightness or contrast), As I am new to this Open GL and not able to work out with th...

Using GSoap returns EHOSTUNREACH when calling connect() through socket.h

Hi there! I'm currently building an iPhone app based on Gsoap toolkit to connect to a webservice. Everything works fine except when I try to connect to my service after disconnecting and reconnecting 3g on the device, I get : SOAP 1.1 fault: SOAP-ENV:Client [no subcode] "Connection refused" Detail: connect failed in tcp_connect() Wor...

How do I add UIControls to a UIScrollView contentView?

I want to add UIControls to a UIScrollView, eg. UIControl *couponView = [[UIControl alloc] initWithFrame:CGRectMake(drawX,drawY,couponWidth,couponHeight)]; couponView.backgroundColor = [UIColor redColor]; [[scrollView contentView] addSubview:couponView]; //may not respond [scrollview.contentView addSubview:couponView]; //not a ...

Change the number of rows in a section depending on a variable.

In my 'Sectioned' UITableView I have two sections, the first one for Attributes like name and the second one is editable where you can add objects. Here's a picture of it: There's an attribute that the user can change (in this case Type) which would to change the number of rows in second section. To be more specific, if one property i...

Change pop-over contentsize using navigationcontroller

Hi, I want to show a popover with a custom contentsize. I can do it doing like so UINavigationController* popoverContent = [[UINavigationController alloc] init]; UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 800, 800)]; popoverView.backgroundColor = [UIColor blueColor]; popoverContent.view = popov...

Will IPhone 3 play videos encoded in H264 format?

Please point any good resources that talk at length on video formats ...

OpenGles on Iphone

Hi, I have same problem as it is explained in follwowing link http://efreedom.com/Question/1-1506299/Applying-brightness-and-contrast-with-OpenGL-ES . I want do brightness and contrast on last changed modifications, by using this code i can do one at a time .Please any body let to know me how can i do it ?? ...

Entering background on iOS4 with active network stream

Following this question, the same is true for background networking. The documentation is very short-spoken on how to keep a network connection up and running while the application is in the background with the new VoIP API. The documentation says to add the VoIP string to the info.plist, set your signaling channel to VoIP with CFRead...

iphone - sign url request with X.509 Certificate

Hi there, I am trying to port what I have done in .NET to the iphone. Basically I am trying to use an API to communicate with a server. The API requires mutual authentication through a X.509 certificate. I did manage to make this work with .NET (which was quite easy), however it's note clear with the iPhone. Did somebody do this be...

How can I adjust the Hue for Multiple UIImageVIews on the iPhone?

I've run into what originally seemed should be a very simple problem, but have spent many many hours trying to figure out and have gotten nowhere. I'm working with Apple's GLImageProcessing sample code and have simplified it to display one EAGLView with a UISlider that adjusts the hue of an image. I've modified EAGLView to inherit fro...

OpenGlES: Texture2D: random image strokes when rendered

Hi, Ok, the issue here is that i am developing games for iphone. I render using OpenGLES and Texture2D. When I render a sprite using "drawSprite" from Texture2D if another sprite is overlaying this sprite and the part overlapping is the same RBGA values a stroke will appear on the parts that are overlapping. If they don't share the sam...