Customize each cell height of a table.
I want to adjust each cell height according to the dynamic data that comes from web. So, how can I fit the height of cell according to each data ? ...
I want to adjust each cell height according to the dynamic data that comes from web. So, how can I fit the height of cell according to each data ? ...
In a project I'm creating, I have various classes. One of my classes has an instance of NSMutableArray that holds objects of another one of my classes. I thought I had a firm understanding on this topic, but somehow it got jumbled up in my mind again. When initializing an instance of this class, I have this initilize method: - (MMShowM...
Hi, I have a problem with the init() method of a standard NSObject. I wrote a class (EFAPersistence) which is a subclass of NSObject. EFAPersistance has a attribute called efaDatabase. EFAPersistence.h @interface EFAPersistence : NSObject { FMDatabase * efaDatabase; } @property (assign) FMDatabase * efaDatabase; Everytime an inst...
-(void) setupMyLocation { NSArray *viewControllerArray = [navigationUpdateFromDetail.navigationController viewControllers]; NSUInteger parentViewControllerIndex = [viewControllerArray count] - 2; NSLog(@"Parent view controller: %@", [viewControllerArray objectAtIndex:parentViewControllerIndex]); switch(parentViewControllerIndex){ c...
Hi, Here is what I have: smallURL:(@"bundle://image.jpg") this line will display me a picture store in the local path, no problem everything works fine. Now I'm using an object because the name for my picture will be store in my database, so I want to use the line like that: smallURL:(@"bundle://%s", [visuel lpath]) My problem...
Hi, How do I get rid of these warnings "Warning:'UIButton' may not respond to '-setPosition:' and "Warning:'UIButton' may not respond to '-addAnimation:forKey' I get them here: - (void)monBtnIn { [monButton setPosition:CGPointMake(113.5,256.5)]; [monButton addAnimation:[self monInAnimation] forKey:@"position"...
Basically, I want to figure out if it's the next day. So, I'm storing the current date (e.g. Jan 2) constantly in a plist. But the next time the user opens the application, if the date has changed (e.g. Jan 3), I want to do something. Note that a simple ascending order check wouldn't work because I don't want to know if one date is later...
Hi, I'm new here at stackoverflow :) But I think, this is the right place to ask my question. I'm a new developer with Cocoa and Objective-c & I'm trying to write my first App for Mac: a ToDo App. At this moment, i can save ToDo's and delete them, but now, I want to add some features like CreationDate, some Tags (in mutablearray), and i...
While showing a modal view I change the style of a UIBarButtonItem in the view controller beneath. Though, when dismissing the modal view the UIBarButtonItem does not reflect the set style. Do I need to send some refresh message? This is happening in the simulator. If the device behaves the same, I don't know. ...
I have an NSArray of strings. I have to place each string in a cell of a table. How to get the string of the array into an NSString ? ...
In any typical iPhone application, there will be model classes that are responsible for data loading/parsing. Upon completion of the data loading/parsing tasks, the affected controllers needed to be notified of the change in the model and update the view accordingly. There are several listener/observer approaches for this in iPhone appl...
I have a block of code that's essentially: for(int i=0;i<aInt;i++){ CGPoint points[2] = {CGPointMake(i,0),CGPointMake(i,bArray[i])}; CGContextStrokeLineSegments(myContext, points, 2); } which is causing a bit of a bottleneck when aInt gets large, as it's likely to do in my case. I don't know enough about quartz...
To optimize a bottleneck, I converted the creation of a large NSArray to a c-style array. (The resulting creation was 1/8 the time of the original NSArray version. Yeah!) But once it's created, speed is no longer an issue, so I'd rather benefit from it being an NSArray again. However, it seems ridiculously involved to convert a c-style...
I am trying to figure out why when I convert my main.m file to a main.mm file, it no longer will link properly. I have reduces the problem to the following example code: #import <Foundation/Foundation.h> #import <AppKit/AppKit.h> int main( int argc, const char ** argv ) { return NSApplicationMain( argc, argv); } I am using gnustep an...
I attended an iphone bootcamp in early '08 and have TA'd a few since. I've recently been asked to teach one and I'm curious what YOU would want to be covered. Keep in mind, the class is 3x days (8 hours each day, minus 1hour for lunch) My WIP list currently is: Introduction to the iphone hardware ' ' ' development environment Debugg...
Hi there, i searched and tried a lot. But i really have no idea how to solve this – Thanks for your help The Error-MSG: Program received signal: “EXC_BAD_ACCESS”. The Line throwing the MSG log(sos_Trace, @"sendMail"); Important I make use of this logging-lib: http://code.google.com/p/soslog-objc/ Full SourceFile #import "Co...
I am building an iPhone application which pulls a lot of information from an webservices that sends XML. The problem now is that I am going to import a set of data that needs to import in 4 or 5 related tables. It depends if the city exists in Core data. The database looks like this: City - Club - track The way how I would do it now i...
Hi all I am using ABPersonViewController and adding a label on the "Info" view. The thing is: when I click the "Edit" button, since the : personController.allowsEditing = YES; my view goes to the "edit view" and my Label is still there (not as I planed ) I am trying to figure out if I can be "notify" when the user pressed the "Edit" butt...
Hey guys, (relatively, I believe) simple question here, I have a UITableViewController with its UITableView, with its determined number of cells. If a user taps on a cell, an image is inserted into the respective cell's imageView property, like so: [self.tableView cellForRowAtIndexPath:chosenPersonIndexPath].imageView.image = [UIImage ...
Hey Folks, I am getting an EXC_BAD_ACCESS error when i am trying to create an instance of a method. UIImageView *img = [[UIImageView alloc] initWithFrame:CGRectMake(40,38,240,203)]; DetailImageViewDataSource *detail=[[DetailImageViewDataSource alloc] init];//**error line** @implementation DetailImageViewDataSource @synthesize webdat...