I have a website. It uses jQuery, a few plugins, Cufon, etc to spice things up a little, mostly visually.
The iPhone version does not need any of these files.
Can I, without resorting to subdomains, prevent the iPhone from loading these scripts?
<script src="js/jquery-1.4.min.js" type="text/javascript"></script>
<script src="js/browse...
I have a question.
You can export an NSManagedObject subclass from xcode xcdatamodel file when you create an Entity.
Is there a way to import NSManagedObject subclass to the xcdatamodel diagram???
Thanks
...
Is the best way of doing what i'm doing? goodThingX, badThingX and nothin are UILabels.
NSString *todayNothing = [[todayArray objectAtIndex:0] objectForKey: @"nothing"];
if (todayNothing!=NULL) {
goodThing1.hidden = YES;
goodThing2.hidden = YES;
goodThing3.hidden = YES;
badThing1.hidden = YES;
badThing2.hidden = YES;...
I'm trying to figure out why this code doesn't work. I'm trying to search if a string contains "|P". If it does, I want to do something.
NSMutableArray *list = [pView getPOIList];
NSString *cellValue = [list objectAtIndex:indexPath.row];
cell.textLabel.text = cellValue;
NSArray *chunks = [cellValue componentsSeparatedByString: @"|P"];...
Hey guys I need some help with this:
I have two view controllers, let's say:
FirstViewController (first) is inside a navigationviewcontroller
SecondViewController (second)
So in the first's viewDidLoad method I have this:
SecondViewController *second = [[SecondViewController alloc] initWithNibName:...];
[self.addsubview:second.vie...
Hello,
I have a UITableView with Cells that are filled with the Objects of an NSArray. I´m using the MGTwitterEngine to get Tweets from users. I want to show this tweets in the TableView. Here is the method that is called when the MGTwitterEngine has received all tweets ("namen" and "nachricht" are NSArrays):
- (void)statusesReceived:(N...
I have a fetchedResultsController that has returned all records for my entity "Account".
I would like to quickly search all Account records for the attribute "lastName" == value, and give me back the Account object, or at least the indexPath of the object in the fetchedResultsController. There should only be 1 object returned.
Other th...
I want to set a region on my MKMapView and then find the coordinates corresponding to the NE and SW corner of the map.
This code works just fine to do that:
//Recenter and zoom map in on search location
MKCoordinateRegion region = {{0.0f, 0.0f}, {0.0f, 0.0f}};
region.center = mySearchLocation.searchLocation.coordinate;
region.span.long...
I have 4 buttons on main screen, each one sends me to a viewController. The third one, sends me to a view on which I wanna set the managedObjectContext. If I use the class name to create an instance, it's all right. But I'm looking for a way to use just one method that uses an array to retrieve the name of the Class for the needed viewCo...
Reference to pre-answered question at: http://stackoverflow.com/questions/1625098/getting-first-and-last-days-of-current-week
There are two answers in the above link. One of them is theoretical and the other is in a language called as PyObjC (Python-Objective C bridge language), and a quick google search confirms that PyObjC does not w...
Can you place more than one image in a UITableViewCell?
...
I have an hierarchy of 3 view controllers in my navigation bar controller: view1->view2->view3. After the user finished with view3 I want to take him to view1. What is the best approach to do that?
thanks,
Nava
...
I'm using a custom NSURLCache to intercept calls for certain web pages in order to modify them dynamically. Inside cachedResponseForRequest: I modify the request, then send it out using sendSynchronousRequest. This works very well until you attempt to submit a form. If there is post data it fails.
If i remove the HTTPBody and set the re...
Starting from the top, I am making an application that in the new project section of Xcode, is a new view based application, that is using core data for storage. Xcode does an awesome job of populating lots of useful code for me so that when I click build, I have a bar at the top with edit and add buttons, and a plain uitableview that is...
I am trying to upload a profile image to twitter using their API. I found some good examples on the web on how to format the URLRequest, however I just can't seem to get this to work. Any help would be appreciated. The URL that I am using from Twitter API is http://twitter.com/account/update_profile_image.json
-(void)uploadImageForAccou...
When I try to invoke an instance of a class that implements a particular protocol, I get warnings about the method not being found in the protocol's signature.
warning:
'-requestCompleted:requestType:' not
found in protocol(s) warning:
'NSObject' may not respond to
'-requestCompleted:requestType:'
I couldn't see the reason...
Hi,
My UITableView has up to 50 rows in each section, populated by a plist dictionary which contains arrays (sections) which contains arrays (row objects) which contains two strings (row title / filename and file extension).
Select row 1 - 25 (item 0-24) and everything behaves normally. But select a row greater than 26 (item 25) and th...
When browsing Stack Overflow I see mostly articles and questions about initializing and playback of audio files. My question: Where on the internet are tutorials for advanced audio playback and maybe editing for the various methods of playback? And maybe some tutorials on general workings of audio components, like the fundamentals of the...
http://www.freeimagehosting.net/image.php?31bf32005c.png
I'm interested in using the nav seen on the iPhone. Look at the screenshot, I'm talking about the Nav with "Top Stories News Money"
You can select an item in the nav to refresh the bottom panel. Or you can click and click to view more items in the nav.
Know of any plugins to a...
I'm trying to set the contact image with the code below. I am not seeing any errors, and the image is not saved to the contact entry in the address book. Please help! I must be doing something wrong...
- (BOOL)peoplePickerNavigationController:(ABPeoplePickerNavigationController *)peoplePicker shouldContinueAfterSelectingPerson:(ABRecord...