Hello all,
I am using a navigation controller in which I push a tableview Controller as follows:
TableView *Controller = [[TableView alloc] initWithStyle:UITableViewStylePlain];
[self.navigationController pushViewController:Controller animated:NO];
[Controller release];
In this table view I am using following two methods to display im...
Hi,
I get a bunch of objects from core data and put them into an array, like this:
NSSortDescriptor *sortDescriptor = [[NSSortDescriptor alloc] initWithKey:@"completed" ascending:YES];
NSArray *sortDescriptors = [[NSArray alloc] initWithObjects:sortDescriptor, nil];
NSMutableArray *sortedIngredients = [[NSMutableArray alloc] initWi...
hi, if i press the particular cell(edit button's action will be taken without pressing edit button) in table view. wiil you answer please?
th following code gives error...
(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSArray *deleteIndexPaths =
[NSArray arrayWithObjects:
[NSIndexPath in...
Hi, I am using Objective-C and I am trying to set an equation that is stored in an NSString to be evaluated and stored in an NSInteger.
something similar to the following:
equation = [[NSString alloc] initWithString:@"1+5*6"];
and then evaluate that to become 31 and store it into an NSInteger. any ideas how to do this?
...
When I set the UITableViewCells backgroundColor to a semi-transparent color, it looks good, but the color doesn't cover the entire cell.
The area around the imageView and accessoryView are coming up as [UIColor clearColor]...
I've tried explicitly setting the cell.accessoryView.backgroundColor and cell.imageView.backgroundColor to be...
I've seen the "Testing iPhone app with limited network access" (link) question, and while it's a great tip, it's not very helpful in terms of testing the actual performance of a piece of code when used over EDGE. In my experience the network will randomly come in an out of connectedness. I'd like some way to simulate this. I'm thinking o...
I have a problem to find the touch point.
I have a function loadView() where I set 16 tiles(16 UIImage View).
Then In function:
- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event
{
// Retrieve the touch point
UITouch *touch=[[event allTouches]anyObject];
CGPoint point= [touch locationInView:touch.view];
...
I have to show ths slider values with the movement of the slider. Is there any existing function I can use. Coz I was trying to get a method other than placing labels to show the updated value along with the slider.
Is there a way to show uislider value with slider? or if any other way please reply.
...
I have a table view cell of variable height.How can I place an image at the middle (vertically) of the table cell ? Is there any way to set from IB ? or can i do it in codes ?
...
Hi all,
In my application I have to send feedback to the client's email.
Here is my code,
-(void) send:(id) sender {
[self sendEmailTo:[txtTo text] withSubject:[txtSubject text] withBody:[txtBody text]];
}
-(void) sendEmailTo:(NSString *)to withSubject:(NSString *) subject withBody:(NSString*)body {
NSString *mailString = [N...
I need to draw a line with an arrow head. How can i do this using Core graphics.
Any help!!!
...
Hi all,
I need to parse the xml listed below in the iphone. can anyone help me in this.
please...!
Thanks in advance...
<Assignments>
<Course>
<CourseName>Foundation of English</CourseName>
<CourseGradePercentage>89</CourseGradePercentage>
<AssignmentList>
<Assignment>
<AssignmentName>Foundations of English I</AssignmentName>
...
Hello..
I'm looking an e-book or some example/samples/tutorials for reach GUI implementation with 3d animation in an iPhone Application.
If anybody has any references then could you please let me know..
Thanks in advance..
...
hai,
my project has created using title as sample.i have used icon also.if i run in iphone simulator in normal mode,sample is shown under my project icon.can i change it to "NEWS"?i have to
convert all code to new project titled as NEWS?
...
Hi im trying to add a button on the point where users tapped on the screen.
Here is the code in my UIView file
- (void)drawRect:(CGRect)rect {
// Drawing code
NSLog(@"drawRect, %i, %i", firstTouch.x, firstTouch.y);
[tagButton drawRect:CGRectMake(firstTouch.x, firstTouch.y, 100, 200)];
[self addSubview:tagButton];
}
- (...
I am creating a drawing application in iphone.i have subclassed uiview to show selection rectangle.here is an image for this....
but when i create a rect using touch points. and when modify uiimage it just modifies vertically flipped.tried CGContextScalCTM with CGContextTranslateCTM but nothing happens.unable to figure it out.does som...
Hi all,
I'm stuck with a warning in Xcode while trying to develop a small iPhone App.
I've got this piece of code in Xcode :
NSNumber *randomNumber = arc4random() % [array count];
If I NSLog randomNumber, everything seems to work but Xcode keeps warning me, saying :
Initialization makes pointer from integer without a cast
There must...
Hi, i want to show all rows in my tableview(when it loads) with red mark (negative symbol) in UITableViewCellStateShowingDeleteConfirmationMask....in other words if i click red mark ,it will show delete button for that particular row.... (edit button's action will be taken without pressing edit button) in table view. wiil you answer plea...
Hi, I'm considering re-writing the menu system of my iPhone app to use Open GL just to improve the smoothness of scrolling a big image (480x1900px) across the screen.
I'm looking at doing this as a way to improve on using the method/solution as described here (http://stackoverflow.com/questions/1443140/smoother-uiview). This solution wa...
Hi, initWithCapacity: is declared in NSMutableArray, but I want to use it to initialize an NSArray. I there any solution?
...