I am trying to create a small augmented reality application where I move an image on top of the camera capture. So the only thing I change is the center of the UIImageview:
[imageView1 setCenter:CGPointMake(x-16, 240)];
and the center gets updated but the position of the image on the screen stays the same.
after the center update, t...
Hi friends...
Normally we use
@interface interface_name : parent_class <delegates>
{
......
}
@end
method in .h file and in .m file we synthesis the properties of variables declared in .h file.
But in some code, this @interface.....@end method is kept in the .m file also. What it means? What is the difference between them?
Also g...
Is it possible to prevent iphone view from receive touch events? If yes, How?
...
Hi,
I've got an application that needs to become the front most application after a timer expires and resign the front most status when the timer is started by pressing a button, e.g.
click "start timer" -> app resigns front most application
timer expires -> app becomes front most application
I deliberately paraphrased things a litt...
I know there are multiple questions about this but I wish for this one to help my specifically with my application. Here is an overview on my application:
I have a scrollview that holds a 7-page brochure. On one of the pages, there is an animation (a simple, cycling series of images). The images are currently 500x750 but the scrollview ...
Hi guy's
I need to use SIP(VoIP) in my applications can anyone suggest me how to start with this with an sample code in objective-c or sequence of steps to do.
Anyone's help will be much appreciated.
Thanks to all,
Monish.
...
Just a quick question if I may, I have always (since learning obj-c) written int properties as follows...
@property(nonatomic, assign) int myValue;
I am now thinking that this might be overkill and I might as well write...
@property int myValue;
Just curious, I know that "assign" is the default behaviour and that "nonatomic" can be...
I want to make a class that can hold settings for my app. Its pretty basic. I will access it from a few different classes, but only want 1 version of this container class to exist so they all see the same data.
Is there something special i need to flag for this?
Here is what I've done so far:
Filters.h
#import <Foundation/Foundation....
HI,
i am working on a project on which i have to preselect a particular cell. i can per select an cell using willDisplayCell. But i couldn't deselect it while the user click on any other cell.
- (void)tableView: (UITableView*)tableView willDisplayCell: (UITableViewCell*)cell forRowAtIndexPath: (NSIndexPath*)indexPath
{
...
hello everyone.In my application am getting an xml file from server and in that i have some attributes for the element.i donno how to read the attributes can anyone help me please..
...
Hi there! I'm new to objective-c. I can't find such classed as NSStack, NSList and so on. But i need containers to write the application. The only containers i've found are NSArray and NSMutableArray. I know that i can use STL containers, but i'm not sure it's the best way.
...
Dear all,
I am using the XMLParser class, which contains an array with XMLElement objects. The XMLElement is being allocated using the autorelease operation. However, for some reason I'm getting a memory leak (using instruments) on this line:
self.currentElement = [[[XMLElement alloc] init] autorelease];
I'm also releasing the XMLPar...
HI I m creating a UILocalNotification for IPhone for repeated Interval for everyday.
-(void)createNotification
{
UILocalNotification *localNotif = [[UILocalNotification alloc] init];
if (localNotif == nil)
{
NSLog(@"createNotification IF");
return;
}
NSLog(@"createNotification");
NSCalendar *calendar = [NSCalendar autoupda...
Hi all! i'd like to have a function in api style. But implementation must be on Objective-C lang. So i've read some information and decided to do following - to mix objective-C with C++. And have problem to call an objC method in C++ class. Thats my example:
//MYClass.h :
class CClass
{
private:
id fileName;
BOOL rez;
public:
bool ...
I have a tableview inside a viewcontroller I would like to edit/delete rows. It is not inside a navigation controller. I have a button set up to call this method:
-(IBAction)setEditingStyleOfTable{
[favsTable setEditing:TRUE animated:TRUE];
}
The editing buttons appear in my cells correctly, either by tapping that button or swipin...
I'm performing a rotation of an UIImageView in place first before performing a rotation animation:
// rotate to the left by 90 degrees
someView.transform = CGAffineTransformMakeRotation((-0.5)*M_PI);
Then calling a rotation on the view by 180 degrees... but it seems like it is rotating the image starting from the original posi...
Hello stack overflow,
So I have a problem and know exactly what is causing it, just not how to fix it. Basically I have a tableViewCell that is loading something like this:
BroadcastTableViewCell *cell = (BroadcastTableViewCell *)[tableView dequeueReusableCellWithIdentifier:CellIdentifier];
/*
* Other code to finish cell setup
*
*...
Given a starting point (origLat, origLon), ending point (destLat, destlon), and a % of trip completed. How do I calculate the current position (curLat, curLon)?
...
Hi,
I am trying to make the view behind the Mapview of the Maps-app.
Just like Maps, I want to be able to see a little of the mapview with the pin.
Can someone tell me how to implement this.
I thought to make a screenshot and show it in a rounded rect button(because of it's rounded shape
so far nothing worked.
Is there anybody how ca...
1) What is the reason for the use of retain?
For example, in a setter method:
- (void) setCount: (int) input {
[intCount autorelease];
intCount = [input retain];
}
2) the autorelease-Method: Is it deleting an old object or preparing the new one?
3) Why the retain-method is called at the input-object?
Would
intCount = inpu...