In my app I'm using map kit.The map kit is working fine but sometimes it fails to acquire user location,so i thought i could show en error message but when i applied the error message it prompting again and again looking very annoying.so i want to ask that when map kit starts to get current user location and if it fails how do i show an ...
Sorry for the newbie question. I have a UITabBar in my main window view as well as an array of UINavigationControllers for each Tab. The structure is similar to the iPod app in that the main views can be seen by selecting TabBar items and then the user can drill down further with the NavigationController by pushing views to the stack.
...
Update: Currently looking into NSSET's minusSet
links: http://stackoverflow.com/questions/1475636/comparing-two-arrays
Hi guys,
Could benefit from your wisdom here..
I'm using Coredata in my app, on first launch I download a data file and insert over 500 objects (each with 60 attributes) - fast, no problem.
Each subsequent launch I d...
how to flip a uiview from top/bottom using uiviewanimation ?
Does anyone have any ideas how this can be accomplished?
...
Hi,
Is there anyway I can sort a NSMutableArray that contains UIImageView by the UIImageView's frame.origin.y value?
Trying to do the sort before adding the view to make sure the stacking order is correct.
Thank you,
Tee
...
i have a UIview holding two other UIviews. that two subviews having 15 buttons and images. i have to translate the parent view. but the translation is not smooth in 3g phone. im using UIviewanimation and CGAffineTransformTranslate for translating the view. please help me for making it more smoother.
...
Is there a way to find out if the user is in the Exposé mode? (i.e., all windows are being shown.) Thank you.
...
This is for practise. I try to build something similar to NSLog. Currently I have this:
#define LogThis(info) \
[[MyLogger sharedLogger] logThis:info];\
- (void)logThis:(NSString*)info {
fprintf(stderr, [[NSString stringWithFormat:@" %@\n", info] cString]);
}
Currently all I can do is pass a simple @"string" to it, but no f...
I have a view that is added as a subview in a viewcontroller. The subview has delegates methods and the viewcontroller is assinged as its delegate. The subview has a animation and calls a delegate method when the animation is finished.
The problem is that when the viewcontroller is removed from the view by the navigationcontroller the s...
Hi,
I'm new to working with bits. I'm trying to work with an existing protocol, which can send three different types of messages.
Type 1 is a 16-bit structure:
struct digital
{
unsigned int type:2;
unsigned int highlow:1;
unsigned int sig1:5;
unsigned int :1;
unsigned int sig2:7;
};
The first two bits (type, in my struct abov...
Hello everyone,
I am developing an SMS service application. At some point the user has to select the contacts he wants to send the SMS so he has 2 options. "Select all contacts" or "Select contacts".
I have some issues regarding on how to implement the "Select all contacts" method since I want to achieve the following functionality:
...
I'm using gcc for compiling and linking Objective-C programs, and I'm wondering if there is socket library that is unified, portable, and/or cross-platform (like Python's socket module).
...
For example, I print out something to the console using NSLog. Is there a way to pass all the current method's arguments to NSLog or any other function or method without looking at each of them explicitely?
For example, I have already a macro that prints useful information to the console when I just put LOGME in my code. The macro will ...
Since hidesAccessoryWhenEditing is depricated in the iPhone 3.0 SDK, what is the replacement? How do you get the same functionality?
...
As far as I have understood so far, every time I draw something in the drawRect: of a UIView, the whole context is erased and then redrawn.
So I have to do something like this to draw a series of dots:
Method A: drawing everything on every call
- (void)drawRect:(CGRect)rect {
CGContextRef context = UIGraphicsGetCurrentContext();...
I have a NSURL to a local file with no base url. I want to change the base URL to another local directory, with the relative path being in respect to that URL.
For example
NSURL *path = [NSURL fileURLWithPath: @"/Users/username/Desktop/Photos/Photo1.jpg"];
Now, say I want to change the base part to /Users/username/Desktop/SomeFolder,...
I made a little cocoa app that brings up an IKPictureTaker and saves a picture to a file if you press the set button. Currently, if you press esc or Command . the window picture taker will close. Is there a way to disable this behavior?
...
Hi,
I'm dynamically adding rows to an NSTableView. When I issue [table reloadData] I can see the scroll view move and if I move it by hand I can see the new value on the table. But how can I scroll it automatically?
...
I am developing for the iPhone and the prevailing advice on auto-generating files from entities, when using Core Data, is to select the *.xcdatamodel file and the create the new file(s) etc. This creates the *.m and *.h files in the Resources directory. These are then moved to the Classes directory or a subdirectory of Classes.
Howeve...
I have a multi-section table view, and each section has a button in its footer that should add a new item to that section. The number of sections is not pre-determined or limited, so I can't make a separate selector for each section like "addItemToSection1", etc.
I also can't just store the section index in the button's "tag" property s...