I try to figure out what -beginUpdates and -endUpdates is actually good for.
Adding and deleting rows should go inside this. But what else? When must I do it? And when is it a good idea to do it even if I don't have to?
...
I have one issue
i have some error (SBJSON Undeclared)
Please help in this issue
...
The following code plays well on the simulator but the audio doesnt play on the actual device. I have tries aif, wav and mp3 ... all three with the same behaviour.
Please sugest what could be wrong.
SystemSoundID aSound;
AudioServicesCreateSystemSoundID(CFBundleCopyResourceURL(CFBundleGetMainBundle(),CFSTR("drop"), CFSTR("wav"), NULL), ...
Apple says about the UITableView -beginUpdates -endUpdates block:
If you do not make the insertion, deletion, and selection calls inside this block, table attributes such as row count might become invalid.
I'd like to know what exactly -beginUpdates does. Why do table attributes such as row count might become invalid when I don't...
I'm trying to return a double from another object then store that into a new double but i'm getting the error incompatible types in initialization. What am I missing here?
double gradePoints = 0.0;
double other = [aCourse getGradePoints];
gradePoints = gradePoints + other;
This is in my other object
- (double) getGradePoints{
retu...
Whatever size i give to it while allocation, it shows fixed size only. Is it possible to increase it?
Code:
activityIndicator = [[UIActivityIndicatorView alloc] initWithFrame:
CGRectMake(142.00, 212.00, 80.0, 80.0)];
[[self view] addSubview:activityIndicator];
[activityIndicator sizeToFit];
activityIndicator.autor...
Hello.
When I build and analyze my project on XCode, I obtain a 'warning' on the following line:
NSString *contactEmail = (NSString *)ABMultiValueCopyValueAtIndex(emailInfo, 0);
The message is: Potential leak on object allocated on line ... and stored into contactEmail.
Is there any error on that line?
UPDATE
I get the same 'warni...
Hello everybody,
Today my question is about UITableViewController-s
In particular I have noticed that the datasource delegate method
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView;
is called twice (even if for instance I just create a navigation based application and without adding a line of code.. well adding an N...
Hello everyone
When using UIImagePickerController to browse a folder, I hope to customize UIImagePickerController as below
in thumbnails mode, place a customized subview (includes a Label and a button) under each thumbnail.
Is it possible?
If not, is there any other third party's free or comercial framework can do this?
Thanks
inte...
I have an app i building which is a simple naviagtion app. I do not want to load the data from my xml multiple times so I am using a singleton to load and hold the data. My first table pushes the view of the second table. This table calls the singleton and the get the array of data from there to display in the table.
This all works fine...
According to the (in)famous iPhone Developer Program License Agreement change
3.3.1 — Applications may only use Documented APIs in the manner
prescribed by Apple and must not use
or call any private APIs. Applications
must be originally written in
Objective-C, C, C++, or JavaScript as executed by the iPhone OS WebKit
engine...
I can't wrap my head around what they tried to say here in the docs for -beginUpdate:
Call this method if you want
subsequent insertions, deletion, and
selection operations (for example,
cellForRowAtIndexPath: and
indexPathsForVisibleRows) to be
animated simultaneously.
Let's see... cellForRowAtIndexPath: and indexPathsFo...
I'm loading 5 images from disk but I want the 1st image I read to show as soon as possible. Right now I do
UIImage *img = [UIImage imageWithContentsOfFile:path];
in a for loop but since imageWithContentsOfFile:path isn't blocking all 5 images wind up getting read from disk before the first one will appear (because they're all using u...
I am working on a simple app tab-bar based application that has two views. The first is the main application and the second is a simple instruction screen. What I am trying to do is update a label on that second screen as things change in the main app. Because the second screen is only simple with one label and some text I am not unloadi...
Is there a common library, parser, etc. for Cocoa or Cocoa-Touch that can take a chunk of text and do the proper syntax highlighting? As a simple example, I'd like to have a UITextView that has C/C++ syntax highlighting.
...
Hello.
I have the following code:
@implementation SendMapViewController
NSMutableArray *emails;
At this method I create emails array and I add some NSStrings:
- (BOOL) peoplePickerNavigationController: (ABPeoplePickerNavigationController *)peoplePicker
shouldContinueAfterSelectingPerson: (ABRecordRef)person {
ABMultiVal...
Hi,
I have a UILabel tha contains a URL (ie www.google.com). Is there a way to display the label as URL so the User can tap on the URL for Safari to open it?
Same question I have for a mailto item (ie [email protected]) to open mail with a new email to that address
thanks in advance
...
My app has to connect to a server, but sometimes when I test my application I don't have my server online, so the app remains stuck when opening.
How I can test programmatically if the server is online? Is there something like ping so i can verify the state of the server and then doing the normal work or not if it is offline? Thank you!
...
I am putting in a uitableview and I'd like to have each row divided into left and right. Sort of like this: http://blog.danilocampos.com/wp-content/uploads/2009/01/photo.jpg
Can someone explain how to do this?
Thanks.
...
Hello.
I have memory leak, found by instruments and it is supposed to be in this line of code:
indices = malloc( sizeof(indices[0]) * totalQuads * 6);
This is actually a code snippet from a tutorial, something which i think is leak-free
so to say. Now I reckon, the error is somewhere else, but I do not know, where.
These are the la...