I'm developing something like a stopwatch, so I have to turn off that below 20% battery alert view somehow during a time measuring session (I will inform the user about battery percentage elsehow).
I just couldn't google for any answer.
...
Hi All,
I am currently running a MacBook Pro with Mac OS X Version 10.5.8. I downloaded XCode version 2.5 and installed it.
Further, I added /XCode2.5/usr/bin to my PATH.
Here is hello.cc program:
#include <iostream>
int main(void)
{
std::cout << "hello, world" << std:endl;
}
Here is what happens:
$> g++ hello.cc
hello.cc: In ...
Hello,
sorry for my bad title (and noob question), but how can I add two numbers like 7 and 6 and the result should be 76. Is there a operation symbol in objective-c?
Thanks and sorry for my bad English.
...
Hello,
my program generates random numbers with up to 6 digits with
int number = arc4random % 1000000;
I want that my program do something when a number like 66 or 4444 or 77777 appears (multidigit number with all digits identical). I could manual write:
switch (number) {
case 11: blabla...;
case 22: blabla...;
(...)...
I have been searching for any documentation on how to exclude files for visual svn but have not found any. All the documentation I find seems to not match my file structure or I am missing some files/directories referenced. For example the only file I find with configuration items in it seems to be completely commented out and missing th...
Hello,
I want to use this code (from my last question (thanks Adam)),
bool AllDigitsIdentical(int number)
{
int lastDigit = number % 10;
number /= 10;
while(number > 0)
{
int digit = number % 10;
if(digit != lastDigit)
return false;
number /= 10;
}
return true;
}
but the c...
Hello,
I want a blinking button. Actually my button look like this:
[redButton setImage:[UIImage imageNamed:@"Button1.png"] forState: UIControlStateNormal];
[redButton setImage:[UIImage imageNamed:@"ButtonPressed.png"] forState: UIControlStateHighlighted];
Now I want to change the Buttonpicture in the normal State every second from Bu...
I have a mapkit / view and it works fine - but I scroll around and after 2 - 10 moves my app crashed... and this only with a "interrupted".
Here is part of my code. I think it's a problem with the background threads and an array release / override problem.
Some background info: I generate a "session" key (MapKey) on mapview startup an...
Hi there,
i searched and tried a lot. But i really have no idea how to solve this –
Thanks for your help
The Error-MSG:
Program received signal: “EXC_BAD_ACCESS”.
The Line throwing the MSG
log(sos_Trace, @"sendMail");
Important
I make use of this logging-lib: http://code.google.com/p/soslog-objc/
Full SourceFile
#import "Co...
I'm trying to figure out where to add extra warning flags like -Wall and -Wextra in Xcode, I'm using version 3.1.4 on Leopard. Apple's documentation is for an old version, if I follow their instructions it takes me to a completely different window than what they show. Also they have a screenshot of a checklist of specific warning flags...
Hey Folks,
I am getting an EXC_BAD_ACCESS error when i am trying to create an instance of a method.
UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(40,38,240,203)];
DetailImageViewDataSource *detail=[[DetailImageViewDataSource alloc] init];//**error line**
@implementation DetailImageViewDataSource
@synthesize webdat...
I'm attempting to create a custom button using a background image in Interface Builder. The image has stretchable and non-stretchable parts so that it can be resized.
IB exposes the Stretching properties to allow for this, yet no values I put in affect how the button appears. It is always fully stretched to fill the size of the frame....
Hello,
I'm trying to find a way that my program will show up a "setup"-view, when you first start the app, but it doens´t works.
Here is my attempt. The appdelegate should look, if the program opens the first time (abfrage = false) and open an other view.
#import "TweetButtonAppDelegate.h"
#import "TweetButtonViewController.h"
#import...
Hello
I have an app with an image view. When the user clicks on this view I want to run some code which will change the colour of a label and then hide this view
I have everything setup in the interface, i.e. Outlets etc, but I dont see any events available to associate
Can anyone help or point me in the direction of a good tutorial ...
Hello,
I have this code in my applicationDidFinishLaunching in the AppDelegate:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
NSString *firsttime = [defaults stringForKey:@"firsttime"];
if (firsttime == nil) {
BenutzerdatenViewCon...
Hello,
I want a counter that shows in a UILabel how many charachters the UITextView has.
I tried this:
IBOutlet UITextView *twittermessage;
UIActionSheet * loadingActionSheet;
IBOutlet UILabel * anzahl;
Here the .m:
- (void)textViewDidChange:(UITextView *)twittermessage{
int count = [twittermessage.text length];
anzahl.text...
Hello,
I don´t know what I did, but just recently the hole view is displaced 20px to the top. The effect is, that my UIToolbar is under the statusbar and at the button is a white space. I set the statusbar in the plist to not hidden. But my second view, which is loaded by pressing a button will be displayed properly.
Any idea? Thanks fo...
I am trying to draw opengl into 2d space, and am doing the following, however it wont compile:
int vPort[4];
glGetIntegerv(GL_VIEWPORT, vPort);
glMatrixMode(GL_PROJECTION);
glPushMatrix();
glLoadIdentity();
glOrthof(0, vPort[2], 0, vPort[3], -1, 1);
glMatrixMode(GL_MODELVIEW);
glPushMatrix();
glLoad...
Hello, I want pass a number from my ViewController to the the TweetViewController. Everything worked okay, I did it with NSUInteger as property (randomNumber and tweetNumber):
TweetViewController *Second = [[TweetViewController alloc] initWithNibName:nil bundle:nil];
Second.tweetNumber = randomNumber;
Second.modalTransitionStyle...
Hello,
I want that my app starts with the keyboard and a courser in my UITextView, so that the user can instantly start to write. How can I do that?
Thanks for your help!
...