I'm trying to have a UIPickerView slide from the bottom of the screen (over the top of a tab bar) but can't seem to get it to show up. The actual code for the animation is coming from one of Apple's example code projects (DateCell). I'm calling this code from the first view controller (FirstViewController.m) under the tab bar controller....
I'm using quartz to display pdf content, and I need to create a table of contents to navigate through the pdf. From reading Apple's documentation I think I am supposed to use CGPDFDocumentGetCatalog, but I can't find any examples on how to use this anywhere. Any ideas?
...
I'm trying to draw a normal rounded rect UIButton, but without the border. Ideally I'd like to be able to change some setting on the UIButton to disable the border.
My problem is that if I change the button type to "custom", I don't get the nice blue selection gradient (which I want to keep), and I have no idea how to draw it manually....
Okay, so, I'm all new to iPhone and stuff, but I'm not even at programming, I have many years of experience with ActionScript 2.0 and 3.0, I want to set up a view, that I can also pass variables to. The view is gonna draw everything with Quartz.
I tried to make another game where I tried to add a pointer to a NSMutableArray to the view ...
Anyone have the expertise to explain when to use NSUInteger and when to use NSInteger?
I had seen Cocoa methods returning NSInteger even in cases where the returned value will always be unsigned.
What is the fundamental reason? Is NSInteger or int strictly limited to if we want to represent negative value?
From NSObjCRuntime.h:
#if _...
Hi,
How can I check if a user enters a number in my UITextField. Basically its a mark im accepting between 0-100 and it can be a decimal....I heard i can try to convert it to a NSNumber type and see if it returns null.
Not suree Any help would be appreciated.
I have tried
if(grade.text doubleValue] == 0){
//Not a number
...
I am trying to set some text on a label
descriptionLabel.text = [NSString stringWithFormat:mySTUser.bio];
The bio property of mySTUser is an NSString. Sometimes it is not an NSString when I set it. How can I check if mySTUser.bio is an NSString so I can prevent it from being assigned to my label text?
...
I'm writing an iPhone App with a webserver in it. To handle a web request, I take the web request and write() to it the data that I want to send back.
When I try to download a moderately sized file (3-6MB) it works fine, but if I cancel the download halfway through, the app crashes and leaves no trace of an error. I'm thinking that the ...
My Application is a Tabbar with a navController in each of it's tabs. Now, the problem is to add a custom info button to the navController in the SecondView. I've created the App in InterfaceBuilder and entered the name of the nib to Load there. If I run my App now, the SecondView is shown, but the problem is, that the viewDidLoad is not...
Hi,
I am getting really frustrated and I cant seem to check if the user has entered a valid url or not. This is what I have tried:
NSString *str = [NSString stringWithFormat:@"%@", [myurl.text stringByAddinPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSURL *aurl = [NSURL URLWithString:urlStr];
if(aurl == nil){
//Invalid...
In my iPhone application I had an email address. If anyone touches touches that link an email should send to that email address. Is there any way for doing this?
Anyone please help..
...
Consider the following method, where I build a string and return it. I would like to release the building blocks of the string, but then the string is based on values that no longer exists. Now what?
Am I leaking memory and if so, how can I correct it?
- (NSString) getMiddahInEnglish:(int)day{
NSArray *middah = [[NSArray alloc] initWi...
Hi,
I created an application with a TabBarController, 4 TabBarItems and every TabBarItem have is own NavigationController file (everything created in IB).
I'm using the drawRect function to design my navigationBar:
@implementation UINavigationBar (customImage)
-(void)drawRect:(CGRect)rect {
UIImage *image = [UIImage imageNamed:@...
How can we add an icon for a finished iPhone application?
Simply giving an image in the project folder will solve my problem ?
Can anyone please help me!
...
Hi,
I created an app long time ago using the last SDK on Mac Leopard, I upgrade to Snow Leopard and so now I use the new SDK and can build app for Iphone 3.1.3, I've got a problem now because I can't build my app on my OS Iphone device 3.1 or 3.1.2
How can I change it and allow my app to aso build in older version beginning to 3.1 ?
T...
I had an image in image in my iPhone application. The text in the image is not readable as it is very small. How can I zoom it at run time?
Anyone please help..
...
Been looking at this for a bit now and not understanding why this simple bit of code is throwing an error. Shortened for brevity:
NSMutableString *output;
...
@property (nonatomic, retain) NSMutableString *output;
...
@synthesize output;
...
// logs "output start" as expected
output = [NSMutableString stringWithCapacity:0];
[outpu...
Code below.
When I hit the "Use" button after taking a picture ... the application becomes totally unresponsive. Any ideas what I'm doing wrong? The "addPlayer:" method is called when a button is pressed on the UIViewController's view.
Thanks
- (IBAction) addPlayers: (id)sender{
// Show ImagePicker
UIImagePickerController *i...
Ok ! Coming to the point directly.
What I want to do is explained as follows.
I have an url of MP3 file. ( for example Sound File )
Now, When user starts application.
Download should start & for that I have implemented following methods.
-(void)viewDidLoad {
[super viewDidLoad];
NSURL *url=[NSURL URLWithString:@"http://xyz.pqr.com/ab...
Hi all,
Is there any way how can i convert a nstimeinterval type value to a string type in xcode?
Thanks in advance
Joy
...