I am trying something very trivial here, but the program is terminating with a “EXC_BAD_ACCESS” in the NSLog. I am attempting to populate a mutable array with several dictionaries like this:
NSMutableArray *_recipientsMutArray = [[NSMutableArray alloc] init];
NSDictionary *r1 = [[NSDictionary alloc] initWithObjectsAndKeys: @"firsValue"...
Hi all,
i want to get oauth_request_token for my application but when i request for the page of request_token in twitter it is giving me error that "failed to validate to oauth signature and token".
Please help me in solving this problem
...
How do I rotate a CALayer 90 degrees? I need to rotate everything include sublayers and the coordinate system.
...
I m a new developer in iphone... please help...
...
I'm looking for some static library or open source project (in obj-c, released under some permissive license) to parse CSS in iPhone. Any recommendations?
...
My application usually only takes up ~40M of memory but when CoreText is used VSIZE jumps up to ~300M. How can I get CoreText to use less memory?
P.S. : I use lots of CoreText objects.
P.S. 2 : I use 'top' to get memory info.
...
I am a new comer to the iPhone world, I am having a question,I am having a login page in which 2 levels and associated 2 uitextfield,i have to save both the UITextfield's Values(inputt by user) to the NSUserDefault,and new time when we start application both the UITextfield should be filled with the values we hav input before....i am i...
Hi All, I am new in iPhone development. I need your help in sorting NSArray.
in this Code I am assigning values to the MyData. this is a NSArray variable.
NSMutableArray *MyArray=[NSMutableArray array];
[MyArray addObject:[NSDictionary dictionaryWithObjectsAndKeys:[NSNumber numberWithInt:314564454],@"Population", @"Mumbai",@"Name", [N...
Hi,
Why @try block do not work?
It crash the app, but it was supposed to be catch by the @try block
NSString* test = [NSString stringWithString:@"ss"];
@try {
[test characterAtIndex:6];
}
@catch (NSException * e) {
NSLog(@"Exception: %@", e);
}
@finally {
NSLog(@"finally");
}
Thanks,
Alex.
...
Hi,
I have the following structure in Navigation Controller
RootViewController
|
|--FirstViewController
|
|--SecondViewController
How can I jump directly from FirstViewController to SecondViewController without showing RootViewController. I would like to put a button to the FirstViewController's N...
I want to drop a bunch of pins for hotels on a map. I have a MKAnnotation class,
and a view (MKAnnotationView) and I also have a class Hotel which has all information about the hotel
In terms of design how should these two work together. Should I have 2 classes or should I just combine both into a single class that inherits from MKAn...
Hello,
I am trying to populate an iphone table view with values from an SQLite database.
Lets say the table is as follows:
Name description picture
poodle likes to growl poodle.jpg
cat likes to meow cat.jpg
... ... ...
How would I ...
In my .h file I have a NSMutableArray *locationsArray defined with a property as follows
@property (nonatomic, retain) NSMutableArray *locationsArray
In my .m file I was displaying a table view, this loaded fine until I tried to roll-up at which point I it crashed with bad access. This was due to the locationsArray not being retained...
i am following along(mostly, im playing around with different functionality) with sams teach yourself cocoa touch programming and im building a calculator but when i try to initialize an object of the calculatormodel class i get this error: " error: initializer element is not constant". can anyone explain this or give me a solution? tha...
Hi have setup a UITableViewCell from a nib file and everything is working as expected. However I decided it would be nice to add a UIImageView as a background to make the cell a bit more interesting, the only problem is that the new UIImageView is now stopping touches getting to the underlying UITableViewCell (i.e. the cells do not turn ...
how access web services through iphone application?
...
New to Cocoa, and seem to be missing something.
What is the most elegant/idiomatic way to obtain the first x elements of an NSArray as another NSArray? Obviously I can iterate through them and store them manually, but it seems like there has to be a more standard method of doing this.
I was expecting there to be an -arrayWithObjec...
I have added a UITableView in IB and set the delegate and datasource and all is working well. What I wanted to do next was change the separator color, but the only way I could find to do this was to add the method to one of the delegate callbacks, is there a better place I should put this?
I don't have this at the moment but I was think...
Hello,
I have an array that looks like this when printed via NSLog:
{
response = "Valid";
updates = (
{
string = "test";
integer = 3493;
},
{
string = "test2";
integer = 55454;
}
);
start-index = 0;
My question is how I can loop through through the "upda...
NSDateComponents *components = [cal components:( NSHourCalendarUnit | NSMinuteCalendarUnit | NSSecondCalendarUnit ) fromDate:[[NSDate alloc] init]];
when i use [components release];
it crashes my application, how do i release components
when i run with leak instrument - my application crashes when it reaches usage of overall alloc 2...