This use to work when i use in a viewbase app template
But when i use a UITabBarNavigation with 2 views didn't work :S ??
-(void)viewDidLoad{
[self.infoweb loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.myserver.com/info.php"]]];
self.infoweb.delegate = self;
}
-(BOOL)infoweb:(UIWebView *)infoweb shoul...
Hi
I am new to objective-c and iPhone development but so far everything was going well til I tried to dig deeper (well not too deep). My problem is that I cannot initialize a specific UIView subclass with a specific coordinates for different orientations.
The rotation is working great but the problem is when the app initializes. I was...
Hi. I'm quite new to programming and i having a problem right now figuring out some methods on my program. anyways i cant figure out how to work out my touchmove event. I want to move a uiimage in x direction or y direction depending on the direction of the touchmove event but i want the movement to be in a grid type movement like by 20 ...
I have tried as follows (got through Google search)-
static const GLfloat vertices[] =
{
0.0, 0.0,
250.0, 280.0,
250.0, 280.0,
250.0, 500.0,
250.0, 500.0,
350.0, 500.0,
350.0, 500.0,
250.0, 280.0
};
static const GLubyte squareColors[] = {
255, 255, 255, 255,
255, 255, 255, 255
};
glD...
Hi All,
I have seen apps in App Store that have really attractive UI.When i make an app i use only the default set of control provided by Interface Builder and my app(even though good in functionality)does not have a UI that can attract people.Is there any ref or sample code that teaches us how to design good UIs for iPhone apps.
Also...
Hi
I'm writing an iPhone app, and having problems trying to archive the settings. I am using a class (AppData) to hold settings (the example shows just one at present), and using the App Delegate to create an instance of AppData when the app loads, and store it when the app terminates. I am conforming (I think) to the NSCoding protoco...
Hi All,
In my app I have a text field that takes some number input from user so i set the keyboard type to "Number Pad"but now i am stuck as to how should i dismiss it when user finishes giving input . i know i have to use the delegate method "textfieldShouldReturn" but the problem is that number pad dont have a return key.so is it nece...
Hi All,
How can we display text in digital format(seven segment display) on a UILabel similar to the way as text is displayed in Digital Clock.
...
Hi all,
I'm using Cocoa AsynSocket class (http://code.google.com/p/cocoaasyncsocket/) in my iPhone application which interacts with a remote server to send and and receive data. I have 1 problems.
When I create the AsynSocket instance from a thread other than the main thread it doesn't get connect. didConnectToHost:Port delegate doesn...
Hello,
More or less everything is in teh title, I am looking for a way to get from a cocoa application, pid_t of the running dock.app
Thanks in advance for your help,
regard,
...
Hi All,
In my app I want to display stop watch kind of thing i.e when the user starts the app a atop watch should start and stops when the user presses the stop button. I am not sure as to how to use the NSTimer in this case.
...
I am writing code to put a label, image and description on a view. The label and image are working but i don't know how and where to write code for my description details. For e.g When a user taps in university, I have a UITextView where the description suppose to appear but have no idea. Please can someone help me out with a detailed wa...
I'm new to programming in Objective-c and the iPhone but I am working on an app to teach myself. I have been trying to figure out how to record sounds on the iPhone. Apple provides excellent documentation for recording from the microphone with AVAudioRecorder but I want to record sounds made by my app, or even just record sounds when but...
hi
i have a soundboard
its just a screen with about 8 buttons.
each individual button will have its own sound which will be played upon button press
There are a couple of ways i could play the sound, such as using SystemSound or AVAudioPlayer
system sound so far seems have the quickest response times, avaudioplayer is quite slow, it cant...
Can I add the UIBannerViewDelegate protocol to my UIViewController subclass while remaining compatible with pre-iOS 4 devices?
This is NOT a duplicate, the question is specifically related to the delegate protocol.
...
Hi
How do you obtain the x,y coordinates of a custom UIVIew?
NSLog(@"landscape orientation and myUIView.x==%f and myUIView.y==%f",myUIView.position.x ,myUIView.position.y )
I get the following error
request for member 'position' in something not a structure or union
...
I just opened an iPad app I'd been working on and it was working fine, until now. I open it and the screen remains black, even after it's loaded! It's an OpenGL and I just downloaded the iOS4 SDK. I also added a provisioning profile. Would any of these changes result in a completely black screen with no error for no reason at all?
It lo...
I have an MPMoviePlayerController that I am presenting modally. The video loads fine, however just before the video is launched the screen turns white until it has loaded. How can I prevent this from happening?
moviePlayerViewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:mySTVideo.video_url]];...
Can I add the UIBannerViewDelegate protocol to my UIViewController subclass while remaining compatible with pre-iOS 4 devices?
This is NOT a duplicate, the question is specifically related to the delegate protocol.
...
I know all instances of NSString are inmutable. If you assign a new value to a string new memory is addressed and the old string will be lost.
But if you use NSMutableString the string will always keep his same address in memory, no matter what you do.
I wonder how this exactly works. With methods like replaceCharactersInRange I can e...