How can I download a PDF document from the web to my apps Document folder?
I want to grab a version of a PDF from the web as an application is launched and use this in the app. It will need to be copied to the Apps Documents folder so it can be used from there until the app is launched again. Obviously I will need to check the date stam...
I am writing code using the Primera SDK from www.primera.com. I have been trying to write a little bit of ObjC code to just take each disk from the bin and load it into the drive, copy the contents of the disk off to a folder and process the next disk.
Firstly I do this to obtain the drive handles. Which returns correctly and I am abl...
Hi
I am trying to create a list of options with check boxes. I am using UITableView and adding custom type buttons to the table as check boxes. My code for cellForRowAtIndexPath method is pasted below.
- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
static NSString *CellIdentifier...
How can I tell UITableView to re-render itself when I add some new data?
I am executing this code ib loadView method.
[NSThread detachNewThreadSelector:@selector(addSomeData) toTarget:self withObject:nil];
This is addSomeData method:
-(void)addSomeData{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
for (int i = 1; i <...
Why does the simulator is showing me 10:30 nachm. instead of 10:30 PM? I use the following code:
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat: @"h:mm a"];
NSLog(@"%@",[dateformat stringFromDate: myDate]);
OK I think I have to set a Locale somewhere ...
...
hi i am having a uiwebview and i want to make it transperent as i have image in background in the imageview , i tried webView.backgroundColor = [UIColor clearColor]; but it didnt worked
thanks
...
i get a memory leak and crash when using this transition more then 7-8 times:
-(IBAction)pan1:(id)sender{
CATransition *transition = [CATransition animation];
transition.duration = 0.50;
transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
NSString *types[4] = {kCATra...
I've come across Objective-C code that declares a variable right below the @implementation line in a .m file and not in the @interface block of the .h file. It then proceeds to use it like a private ivar. I haven't been able to find documentation about declaring variables this way and would like to know the impact.
Example:
.h
@in...
I have a web service used by my iPhone application.The application accesses the webservice to get authenticated.
My question is how to intimate the user when the server doesn't sends any response when it is called.
ie..The control doesn't comes to
-(void) connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)...
Hello , i have a strange issue with my UITableView...I add a UIButton as a subview to each cell , but when any of the cells gets out of view something happens, and when i scroll up again , i can see that the UIButton background images of some cells are overlapping !
The cellForRowAtIndexPath method i use contains the following code , wh...
Can anyone tell me if this is possible?
I have a setup a UITableViewController which consists of a number of cells, if you select one of these cells you are taken to a new viewController using pushViewController (see below)
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NSUInteger row ...
MonoTouch has automatic garbage collection on the iPhone. Couldn't someone prematurely implement garbage collection for Objective-C on iOS? I'm not the guy to do it, but I'm curious as to why or whether this is impossible.
I know that projects like this exist: what does it take to use them on iOS? Since they are in C/C++ anyway, and Obj...
Hi all,
I'm using NSNumber to store various values, but sometimes run into issues when doing calculations with the values and initializing new NSNumber objects for the results. I've figured out how to overcome it, but I couldn't for the life of me explain why it works and since my grasp on numerical values in computer environments (doub...
I have a custom NSManagedObject subclass, say, Person. I also have a UIView registered with -addObserver:forKeyPath:options:context: to observe various properties of a Person, some of which are persistent like "name" and others are just dumb KVO-compliant accessors unrelated to Core Data, like "drinking".
@interface Person : NSManagedOb...
i call the url of googlemaps to show a position to a given lat and long.
How can i mark this position on the map with a pin ?
NSString *latlong = [NSString stringWithFormat:@"%@,%@", einBetrieb.lat, einBetrieb.lng];
NSString *url = [NSString stringWithFormat: @"http://maps.google.com/maps?ll=%@",
[latlong stringByAddingPercentE...
Hello all,
I am new to Core Data programming and am trying to work out the concepts involved. I have an object called a Lease that has a many-to-many relationship with Apartment objects. Given a Lease object, how do I get a count of the related Apartment objects or an NSArray of the related objects?
Thank you!
~~Garth
...
We're using Interface Builder for developing an app for the iPad and we can't figure out how to increase the height of the textfields.
When we were using IB to develop an application for osx, you could go to the textfields attributes and under the control section you could set line break to word wrap instead of clip.
When we try to ...
Hey guys,
I am working on a split-view based application for the iPad. I created a menu overlay system that has a button that leads into the split-view application. See comment for image
When you click the enter button, however, it results in this:
http://commandoswat.webs.com/Screen%20shot%202010-09-16%20at%201.37.11%20PM.png
Here i...
I have an NSString which has escape characters etc in it. I need to clean this piece of NSString so that I can display it to the user. Can anyone help me solve this problem.
It's a bit tricky because its not in HTML format its in escaped HTML format
hotel description <B>Description</B>Friendly and laid-back, the de Alcudi...
Hey guys,
I have sort of a simple question. I am writing an Objective-C program with some multithreading. I have a global NSArray, and I add objects into that NSArray from a method that is called in a new thread. If the objects I add into that NSArray are new objects created in that method (local), will that create memory access and/or ...