#import <UIKit/UIKit.h>
@interface ProfileViewController : UIViewController {
UIImageView *profPic;
UILabel *name;
UILabel *hosted;
UILabel *points;
UILabel *attended:
UITableView *tableView;
}
@property (nonatomic, retain) IBOutlet UIImageView profPic;
@property (nonatomic, retain) IBOutlet UILabel name;
@prop...
Hi,
I have been poundering this for the last few days..
I need help to convert a color image to "black and white", not grayscale.
I what to do this with the iPhone SDK and Core Graphics, as i'm convinced this is possible.
Thanks in advanced..
...
I've used typedef enum in the past with method parameters and had no problem, but today I'm having problems...
h file
typedef enum
{ eGetVarious1,
eGetVarious2,
} eGetVarious;
- (double)getVarious:(eGetVarious)eVar:(NSDate*)pDate;
an m file
...
So I have an object and I want the object to be able to use in 2 different methods. Is it possible? If not, is there any work arounds for this.
...
I have been trying for hours but couldn't figure out why it doesn't show the filtered result. It always shows all the results. I'm not sure what I am doing wrong.
- (BOOL)searchDisplayController:(UISearchDisplayController *)controller shouldReloadTableForSearchString:(NSString *)searchString
{
[self filterContentForSearchText:search...
Hi,
I want to have selected index for UITableView.
I have written following code:
NSIndexPath *index = [NSIndexPath indexPathForRow:1 inSection:0];
[tableView scrollToRowAtIndexPath:index atScrollPosition:UITableViewScrollPositionTop animated:YES];
This always work for 1st item. I want to have selected index in indexPathForRow.
Pleas...
i have to make a web request but It' format creating problem for me
it is like
i require www.abc.com?userID="YourUserID"
here the problem is i am creating following
NSURL * url = [NSURL URLWithString:[NSString stringWithFormat:@"http://www.abc.com?userID=%@",myID]];
which will create a url with string www.abc.com?userID=12345
but...
i m making a game in which animation is running perfectly on iphone simulator but when i run on the device it crawls.I m using NStimer to repeat the function in which animation is running.NSTimer repeats after 0.4 sec and animation duration is also 0.4.It is running perfectly on simulator but on device when animation duration completes t...
hi..
I am new to iPhone developemnt.
NSString myUrl = @"www.google.com";
I need to know how to create a hyperlink for the above NSString variable.
In the MFMailComposeViewController I need to use like below
[mailViewController setMessageBody:myUrl isHTML:YES];
Please help me out.
Thanks for any help.
...
Hello everyone.
My question is quiet simple (I think). I have a class that implements a simple chronometer (using some integers and NSTimer). I would like to close my app (so enter in background mode) but I would like my chronometer still continue to count. How can I manage that ?
Thanks a lot !
...
I've not got the device price format setting.
NSNumber *temp = [NSNumber numberWithDouble:dblPrice];
NSDecimalNumber *someAmount = [NSDecimalNumber decimalNumberWithDecimal:[temp decimalValue]];
NSNumberFormatter *currencyFormatter = [[[NSNumberFormatter alloc] init] autorelease];
[currencyFormatter setNumberStyle:NSNumberFormatterCurr...
Anybody can tell me how to add "dismiss key" to iPhone's virtual keyboard?
...
I have a UIView and I want to get its VISIBLE bounds. For example sometimes there's a tabbar; sometimes there's not. I would like to get different values for these two cases. UIView.bounds always just returns the bounds of the entire screen of the phone (available to apps) which is not what I want.
...
I have a 2d array matrix[10][10] that I'd like to inspect at debug time.
I understand that I can do this in GDB using
p *matrix@10
But it outputs this in one line, making it difficult to read.
Is there a way to have this output formatted in any way, lets say as a matrix?
...
I wonder if
return @"Text";
is autoreleased? And if it is so could you please explain it.
Is the compiler creating a NSString object for us or how will the compiler handle this?
...
My application structure is the following:
UITabbarController
UINavigationController
UIViewController
UIViewController
The second View controller is pushed with
[self.navigationController pushViewController:[[DetailController alloc] initWithNibName:@"GenericView" bundle:nil] animated:YES];
When i from my DetailController try to pu...
hi, I have this tab bar application, I have 1 tab setup correctly with a drill down navigation/table view controller which display information and details of Entity A ; And now I want to create a new tab which display another set of drill down and displaying information of Entity B which both entity has no relations.
I tried to use ...
i have a array containing dictionary ,i want to show the value in table view according to name field in dictionary suppose if name start with a,b ,c are in different section..,there are number of section according to the name field of dictionary ..here i am not able to do ho i get the number of row.. if any one know plz give then soluti...
hi, I want to scan this string
"hello I am emp 1313 object of string class 123"
so in this I want to know if their are any integer value present and if present I want to display them for this I am using the NSScanner class and heres a view of my code
NSString *str = @" hello I am emp 1313 object of string class 123";
NSString *l...
Hi
I was wondering if there was any way that I could change the size of the image and also its position within the UIButton?
Thanks
...