Hi there,
I've got a problem which I thought is pretty simple to fix but somehow I can't figure out what to do.
I've got an URL like http://www.myserver.com/myservice.php?param=foobar. When I type that into Safari's address bar I see an result like "Error" or "OK". So, how do I properly call that URL from within my code and get that re...
Hello,
I am trying to get started with unit testing an app that uses Core Data. In the setUp method of my unit first test, I can get the path to my data model but for some reason cannot convert it to a NSURL.
My setUp method is:
- (void)setUp {
NSBundle *bundle = [NSBundle bundleWithIdentifier:@"com.testcompany.LogicTests"];
...
I have implemented connectionDidFailWithError to alert the user of any errors that happen in the network connections like time out, no internet connection etc.
It gives me correct notification when no internet connection is available.
So do I still need to implement Apple's reachability code?
...
Does webkit have access to the camera API on the iphone? What about other phones? I want to build a mobile website that enables users to click on a button that opens the camera, ask if you want to take a new picture or user an existing one (assume the former), take a picture, confirm the picture is good, then be routed back to website ...
can i load rootview's xib View to another class
...
I'm in a view that has a UIPickerView. Here is where I'm making my sortedArray.
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
NSMutableArray *studentNames = [[NSMutableArray alloc] init];
for (Student *student in course.students)
[studentNames addObject:student.name];
sortedArray = [studen...
i am having vie controller nib file with its classes .h and .m and i want to add this view as a sub view to my rootview controller innavigation controller
how to add it..
i want a syntax to this ..
please help me....
...
Either I'm not understanding what the term "uniquing" means in Core Data, or I'm not fetching my data properly. I have a pretty simple data model. Three entities: Community, Asset, and Category. Each Community has a relationship to multiple categories. Each category has a relationship to multiple assets. Each asset that is created m...
When I change the orientation with a relatively empty webview, the screen rotates no problem. As soon as the webview is particularly full with content and it becomes scrollable the rotation animation becomes very slow. The status bar will rotate first, and the view will follow 3-5 seconds later.
Currently, in willRotateToInterfaceOrient...
I'm trying to calculate the median of a (small) set of NSNumbers in an NSArray. Every object in the NSArray is a NSNumber.
Here is what I'm trying, but it's not working:
NSNumber *median = [smallNSArray valueForKeyPath:@"@median.floatValue"];
...
Hello guys!
How to integrate iAd into my iPad App? Is there a way or is it working only on iPhone with iOS4?
...
Hello,
How can I make my simple site, on which the user can choose to play a number of music clips by clicking on little "play" buttons on the page (think of Amazon's "preview" on their product pages for CDs), work on mobile devices?
[I originally created the page thinking only of desktop browsers, so currently it works by using Flash...
I have a UILabel in an interactive calculator application that is continually being refreshed with a newly formatted message as the user changes a UISlider value. My question is what is the most efficient way to manage the strings:
NSString *data = [[NSString *alloc] initWithFormat:@"Value A: %0.1f, Value B: %0.1f, valueA,valueB];
myUIL...
Hello,
I'm developing an iphone app using mapkit and CLLocationManager.
I put lots of MKPinAnnotationView on map (about 100) and I want to update all callout's subtitle whith user distance when I receive it.
How to do it ?
Thanks,
David
...
Hi,
There have been a few threads on this topic but none have been able to solve my problem. Essentially I am trying to add a custom object to an NSMutableArray and it doesn't seem to be adding. I don't get any errors but I get a warning saying that my array is an "unused variable" so it looks like it is not getting used. See code below...
Hello friend's
can i show a UIView in landscap with using ui tabbar controller
if it's possibele then tell something oubout it
...
If I provide an image in both the standard size and now a new one with @2x for iPhone 4, which one with the iPad use? If the user chooses the 2X feature to run the iPhone app in full screen on the iPad, do they seem the lower quality images stretched or will they see the higher quality images?
...
Suppose I have my project using Base SDK = 4 but set the Target OS to 3.
Now suppose that I may have used some functionality that belongs to 4, on a framework that already exists on 3.0. So, it is not a matter of using a framework that doesn't exist on 3, it is a matter of using a method that exists on 4 but not on the same framework on...
How are UITableView cells made to be able to be deleted by users?
...
I have a tab bar item which shows users favorites in a tableview. I have another tab bar item which shows a view and allows the user to add a favorite.
Update
this array of favourites gets read from NSUserDefaults in the viewDidLoadMethod of the class which creates and add a favorite.
NSUserDefaults *def = [NSUserDefaults standardUser...