Hi, for some reason this tableview keeps crashing and it seems like the tableview is unable to display the secondsString for some reason but i have no idea why... please help me out here cause i have no idea what i could be doing wrong..... Thanks!!
#import "SettingsView.h"
@implementation SettingsView
- (void)viewWillAppear:(BOOL)ani...
hey,
I am new to objective-c so i do not know how to create webview control.I want to display any web page in web view so how can i do this.
thanx for help in advance....
...
Hi guys,
This was working fine before compiling with iOS4.0 and I can't figure out what's wrong.
Here's the problem. I send my app scores from my database with a date/time on it. My goal is to store that in CoreData. When I use the code below I get a null value for the date.
Code:
NSDateFormatter *dateFormatter = [[NSDateFormatt...
I'm trying to use threading to load an image from a url. I have no background code and I'm having trouble getting the NSThread thing to work. What I've got is a UIimageView called photo1 and I've got an image that loads in from the net. (say http://www.google.com/logos/classicplus.png) but when navigating to the screen, the app pauses to...
What is the way to read PDF content on an iPad or iPhone?
...
#import <WebKit/WebKit.h>
@interface MyClass : NSObject <WebFrameLoadDelegate> {
WebView *webView;
}
cannot find protocol declaration for 'WebFrameLoadDelegate'
...
I'm trying to learn how to use the NSInputStream class on the iPhone using a unit test. I can get the NSStream to read data from a file using the polling method but for some reason the delegate/event method is not working.
I've posted the relevant code below. Please ignore memory leak errors and such since I'm just trying to ensure I ...
Hey, trying to put a simple png sequence animation into my app. I have the first frame in place in IB, and the graphanimation outlet connected to it.
There are 54 pngs in the sequence with names "Comp 1_0000.png" to "Comp 1_00053.png"
Here's my code.
-(void)viewDidLoad{
for (int i=0; i<53; i++) {
graphanimation.animationImag...
I'm writing unit tests. And I cannot test one function, because it calls keyWindow
UIWindow* window = [UIApplication sharedApplication].keyWindow;
And keyWindow returns nil (I don't have any window).
But I need to return anything, but nil.
I used category to manually set keyWindow value, but this didn't work
@interface UIApplication...
I am new to Core Data and got really confused about this problem. I use an NSFetchedResultsController to get my data from the Core Data storage. After trying to delete data, my app crashes and the FRC doesn't work anymore. I deleted all data and tried it again, but it still doesn't work.
The confusing thing is that a standard NSFetchRe...
Hi guys, how can I remove all objects? I know I can remove one by
[managedObjectContext deleteObject:objToDelete];
is it possible to delete all without iterating all array?
thanks
...
I am creating a subclass of UIBarButtonItem, to provide some specific functionality.
The new class has an initializer, that is the only one that should be used when creating an instance of the class:
- (id) initWithSomeObject:(SomeObject *)param;
The problem is, all the initializers from UIBarButtonItem are still available, so I coul...
Is there no unit testing framework in the iphone sdk?
...
Previously I used to write my object interfaces like this:
// VERSION 1.0
@interface Planet : NSObject {
NSString *name;
NSString *type;
NSNumber *mass;
}
@property(nonatomic, retain) NSString *name;
@property(nonatomic, retain) NSString *type;
@property(nonatomic, retain) NSNumber *mass;
-(NSString *)description;
@end
Bu...
I'm trying to create a window switching application. Is there any way of getting a list of the windows of other applications, ordered by recently used?
...
I'm getting a compiler error when i try to build the following code. Its a simple View (UntitledViewController) that has a navbar with a bar button item which calls showPopUp that creates and displays a pop up with my other view (popoverview).
Popoverview has a button which calls hidePopOver which im trying to make close the pop up , bu...
I need to set an image view to display an image here.
else if (n == 2) {
gamestatus.text = @"The Card is A Two.";
// I Need to set my imageview to a picture here.
}
...
I will the location update be harcoded in simulator to my real position...
...
I am trying to get the IP Address using NSHost. With the NSHost object I can use the addresses method to access an array of objects one of which is the IP Address. I fear though that the IP Address may change position in the array from one machine to the other. Is there a way to access this information in a universal way?
There was an a...
I have seen the following piece of code:
//example.h
MKMapView * mapView1;
@property (nonatomic, retain) MKMapView * mapView;
//example.m
@synthesize mapView = mapView1
Question: What relation between mapView and mapView1 is ?
Does it create set and get method for mapView1 ?
Thanks !
...