I've been going through the screencasts here to learn how to write a table-based iPhone application, and it's been going pretty smoothly so far. Presently I'm halfway through the third episode, and it's starting to hit a snag.
In order to remove temporary hard-coding for the top layer of the table, the tutorial creates an NSMutableDici...
I have seen many .h ( Private API's ) of apple. Most of the variables / structures / enums / classes have _ as prefix.
#import <Foundation/NSValue.h>
#import <Foundation/NSObjCRuntime.h>
@class NSString;
typedef struct _NSRange {
NSUInteger location;
NSUInteger length;
} NSRange;
My question is,
What is reason behind giving...
Hi all,
I have a simple request that I have spent much time on (embarrassingly)..
I have sub-classed a UITableView to add some functionality. These new features require things like NSMutableSet which require allocation/initialization.
I have put my object's initialization routine in
- (id)initWithFrame:(CGRect)frame style:(UITableVie...
I have a view that has a button which toggles a UISearchBar using
searchBar.hidden = !searchBar.hidden;
The searchbar goes out and queries a web service to get results and then displays them to the user without ever using a UITableView or a local datasource or anything. As such I don't really want to use a UISearchDisplayController to...
I'm doing programmatic scrolling in UITableViews with scrollToRowAtIndexPath, which does not trigger scrollViewDidEndDecelerating. What is a good way to detect when this scrolling has completed?
I ask because in my code:
[tableView1 scrollToRowAtIndexPath:indexPath1 atScrollPosition:UITableViewScrollPositionBottom animated:YES];
[tabl...
I have a programmatically created UIToolbar in a couple of views. In my view that has a table present, there is a white line across the middle of the toolbar, that appears to be where the border of the table cell would be. Is there a way to get rid of this line?
Here's a screen shot:
Here's the code I'm using to create the toolbar ...
I am looking to change the name of the application, but dont want to rewrite the code.
Can anyone help me with this problem....
Thanx in advance
...
I want to show a alert when user shoots a picture and click on use button.It's strange that in iPhone OS 2.0 when we shoot a picture it shows a loading message,but in iphone os 3.0 it shows nothing.
How do i show an alert also is there a way to fasten the imagepicking process? in my app sometimes it's slow and sometimes it's fast i haven...
Background
I'm using UKCrashReporter in my app.
I've installed my own Uncaught
Exception Handler.
I'm setting up the
managedObjectContext of the object
activeItemController in
applicationDidFinishLaunching (1)
The Problem
If the managedObjectContext method throws an exception, the crash reporter dialog box only flashes up before th...
hi all,
I am having 8 methods in my application, and each one is calling a single method -(void)someFunction,
How to know from inside the -(void)someFunction which one of those 8 methods called it ?
All suggestions are appreciated.
Thanks
...
Hi All,
I am using this NSURLConnection Delegate method
- (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
{
long long rdata = [response expectedContentLength];
NSLog(@"Response Length : %lld", rdata);
}
its always showing -1
What is the format specifier for long long variable ?
T...
Hi all,
I want to display an UIProgressbar depending on the amount of data downloaded from the server.
One way I implemented is I made a NSURLConnection and set the delegate.
The - (void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
gave me the expectedContentLengh
And in the - (void)connecti...
I need a good old-fashioned 2-dimensional array of integers in my program, but no matter how I try to declare it as an ivar, and then use @property/@synthesize, I get one compiler complaint or another.
I declare
int spotLocations[10] [10]
as an ivar.
That much works, but then the @property/@synthesize process never passes must...
Hi!
I have a UI file in xcode, and I have an AppDelegate class with an awakeFromNib function. From this function, is there a way to change properties of objects which are in the UI? For example, change the string of a label, textfield and so on.
Sorry for bad english, tried to explain as well as I could.
Any help would be very apprec...
Hi all,
Let me see if I can articulate what I'm trying to do... I'll distill it to the core issue.
I have an objective-c program and a c callback function. The context is I am using cocos2d and chipmunk physics with the iphone sdk. What I am trying to do is update "score" upon a collision between a bullet and a monster. Everything works...
I have a binary file I've loaded using an NSData object. Is there a way to locate a sequence of characters, 'abcd' for example, within that binary data and return the offset without converting the entire file to a string? Seems like it should be a simple answer, but I'm not sure how to do it. Any ideas?
Thanks.
UPDATE: I'm doing this o...
So I know a bit of C, trying to jump into ObjC for Max apps. Trying to figure out the terms and just needed a guru to humor me.
So an object could be thought of as a house that holds operations and data together.
But there may be many different objects of the same kind, called an instance. This could be thought of as a trailer park (ma...
The documentation says:
/usr/include/objc
However, on my mac there is no such folder anywhere. Or can't I just see these with Finder? If so what Tools do I need to take a lookt at them? I'm just very interested to see these headers. Just for fun.
...
I have a question about safely or properly converting an NSString into types such as CGFloat and NSInteger, considering that these are simply wrapper types that Apple created to use different primitives depending on certain factors (e.g., NSInteger is typedef'd to int on 32-bit architectures and long on 64-bit architectures).
For exampl...
Well I guess at http://www.opensource.apple.com/source/objc4/ but where exactly? objc4 doesn't sound much like Objective-C 2.0.
...