Hi,
I am creating 30 UIButtons dynamically for my custom calender in iphone application. I am also adding the UILabel as a subview in each of UIButton. I am setting different background color for each of the UILabels.
When i try to change the background color of UILabel then on some of the iPhone device it is working fine but on some o...
I've been working on a project for a few weeks now and today is the last day before it goes to client (typical).
For some reason Im suddenly getting the following error when building my project (sim or device), even though other projects build fine
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator3.1.3.sdk...
Hi there,
I wonder how can I detect and make a connection to a Wifi network programmatically just like the WifiFoFum app does in Apple Store. This app has been approved and recently updated so there must be a legal way of doing it.
If anybody knows any way of doing it please post a code snippet... even if it is an undocumented API call a...
Hi everybody!
I've got a memory leak i just don't know how to solve.
This is the leaking code:
[newImg release];
CGColorSpaceRef d_colorSpace = CGColorSpaceCreateDeviceRGB();
CGContextRef context = CGBitmapContextCreate(Data, width,
height,
...
Hello,
I have integrated AdMob in my iPhone application.
I am adding an Ad view in of my UIViewController as follows:
ProgrammaticAdViewController *temp = [[ProgrammaticAdViewController alloc] init];
temp = [[ProgrammaticAdViewController alloc] initWithNibName:nil bundle:nil];
[self.view addSubview:temp.view];
So, I will be able to ...
I have a UIScrollView instance on the screen. And I need to open this screen with the scroll view scrolled to the absolute bottom without any animation.
So, I use
scrollRectToVisible: animation:NO
but anyway a bit animation is present. I've tried to use
setContentOffset: animated:NO
but also there is a bit animation.
Can somebod...
I'm wondering about how you would implement an effect similar to this one implemented in flash. It would just be a black screen which, when the user touches and drags over it, produces an effect similar to the one seen in the flash movie.
What is this effect called? Do you have a better example?
One of my biggest problems is articulatin...
According to the website for ASIHTTPRequest:
If your requests are all of the same
broad type, but you want to
distinguish between them, you can set
the userInfo NSDictionary property of
each request with your own custom data
that you can read in your finished /
failed delegate methods.
How do I set userInfo?
NSURL *url...
I want to add more deatils in MKAnnotation like Location Title,Description, date, location Name. So it will be four lines that are needed. But i found that Only 2 parameters can be passed to MKAnnotation which are title and subtitle. So how i can add more details in map.Plz help me..Thanks in advance
...
Hi,
I want to customize a UIBarButtonItem's background. Here's the code I use:
UIButton *button = [[UIButton buttonWithType:UIButtonTypeRoundedRect] retain];
[button setBackgroundImage:[UIImage imageNamed:@"ButtonBackground.png"] forState:UIControlStateNormal];
[editButton setCustomView:button]; // editButton is the UIBarButtonItem
U...
I have just finished one of my apps when I got this message. I cannot for the life of me work out what is wrong.
(gdb) continue
2010-02-26 14:05:51.443 BrainTester[2638:207] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] was unable to load a nib ...
Hi,
I m the beginner in iphone software development.
I developing the application on skin cancer in which i want to calculate or count red color pixel from UIImage which is captured by iphone camera.It is possible to count red pixel from UIImage?
...
Hi
I have an application with some images in it. Recently I added a new one in and it displays fine on the simulator.
When I create a distribution build and do an ad-hoc install it works fine, but for reasons unknown the image doesn't appear.
I have tried
"touching" the directory it is in
Re adding it
Cleaning the solution aroun...
Hello,
I need to compile libpq with 10.5 for using later in the simulator.
I can use the libpq in the device without problems.
I'm forcing with this:
make clean && ./configure CFLAGS="-arch i386 -isysroot /Developer/SDKs/MacOSX10.5.sdk" && make -C src/interfaces/libpq
but I'm getting the error:
ld: library not found for -
This ...
I have started a project from an XCode template I have created. When I try to run in debug mode it works fine; however, when I try to run it in release mode I get an error message
couldn't parse contents of _Prefix.pch: Unexpected character / at line 1
I haven't touched this file. Any ideas on what has happened and how to fix it?
...
Xcode Instruments claims that the below code results in memory leak. As far as I understand, the following happens when assigning a property:
* The old value is autoreleased
* The new value is retained
* The new value is assigned obviously
With that it mind, how come I have a memory leak and how do I resolve it?
"TestProjectViewContro...
I have a Tab Bar, with 2 tabs. When I click the first tab, it have a View showing "View 1", and I want add a button on "View 1", that can take me to a new full screen view "Full Screen View 1". also, in the "Full Screen View 1", it have a button to return to "view1", and exit full screen.
So, my question is how to implement these two b...
I have a custom class I use frequently on my projects. This class has several methods but not all of them are used in every project.
My question is: including this class on a Project will bloat the project with useless code or will the compiler just include the methods used?
I mean, if my class has 30 methods but just 4 are being used ...
I have code that when a user hits the end of the game, it prompts them if the would like to play again:
-(void)showAlert
{
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@" B U S T E D ! "
message:@"Sorry, you busted!\n\nWant to try your luck 1 More Time! ?"
...
Hey
I m still facing the problem when I launch my application in iphone.
It shows the stack over flow by presentModelViewController bcoz I m using number of viewcontroller and calling the same viewcontroller from other viewcontroller but it gets terminated.Here I m showing the code which I m using in whole program to call other view co...