I have created Window based Tab Bar controller app,
One Tab Bar of viewController has been interfaced with WebVIew ..I am looking to create another view once touch event happened in that WebView..
//TabBarViewController.m
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
TabMainView *mainView = [[TabMainView alloc] ...
I've been debugging my iphone app and found something interesting.
I have a UIViewControllers with TabBarcontroller( 6 tabs). Each tab is a UIViewController and it has a UITtableview. The viewDidLoad works and brings the initial data. On of the UITableView has a search bar. After the user touchs presses search some magic happens a...
I have a UIWebView object, with the caching-policy specified as: NSURLRequestReloadIgnoringLocalCacheData
This should ignore whatever objects are in the local cache and retrieve the latest version of a site from the web.
However, after the first load of the site (ten resources in trace, HTTP GET), all subsequent loads of the site only ...
Hey everyone,
I've added some UIImageViews with png images to my view, using interface builder. Initially they are added off-screen.
Later, I animate them onto the screen with CoreAnimation, like so:
[UIView beginAnimations:@"slide" context:nil];
[UIView setAnimationDuration:0.1f];
[UIView setAnimationCurve:UIViewAnimationCurveEaseInO...
I am trying to set up a layout as such in an iPad application. It will have three major views, which make up the whole screen. The views will be stacked one on top of the other, each taking up the full width. I have one major nib file which accounts for the entire screen space. In that nib file, I am instantiating the three view cont...
I'm trying to have a UIPickerView slide from the bottom of the screen (over the top of a tab bar) but can't seem to get it to show up. The actual code for the animation is coming from one of Apple's example code projects (DateCell). I'm calling this code from the first view controller (FirstViewController.m) under the tab bar controller....
I'm using quartz to display pdf content, and I need to create a table of contents to navigate through the pdf. From reading Apple's documentation I think I am supposed to use CGPDFDocumentGetCatalog, but I can't find any examples on how to use this anywhere. Any ideas?
...
+ (void)findAndCopyOfDatabaseIfNeeded{
NSArray *path = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);
NSString *documentsDirectory = [path objectAtIndex:0];
NSFileManager *fileManager = [NSFileManager defaultManager];
NSString *databasePath = [documents...
I'm trying to draw a normal rounded rect UIButton, but without the border. Ideally I'd like to be able to change some setting on the UIButton to disable the border.
My problem is that if I change the button type to "custom", I don't get the nice blue selection gradient (which I want to keep), and I have no idea how to draw it manually....
I've read that to receive push notifications over Wifi the firewall must allow TCP traffic over port 5223. However, the network administrator tells me he needs the IP addres of the server. Would it be gateway.sandbox.push.apple.com?
Thanks!
...
This should be a pretty easy fix, but I haven't figured out from reading the Apple documentation or other SO questions how to do this simple switch from creating my Interface programmatically to using Interface Builder.
I am basing my code around this framework:
http://www.pushplay.net/blog_detail.php?id=27
The only difference is that,...
I went through this tutorial about how to animate sprites:
http://icodeblog.com/2009/07/24/iphone-programming-tutorial-animating-a-game-sprite/
I've been attempting to expand on the tutorial by trying to make Ryu animate only when he is touched. However, the touch is not even being registered and I believe it has something to do with i...
I created a class to launch the MailComposer so that my iPhone app would only have one place to go when generating various kinds of e-mail: some with attachments, some not. Some with pre-filled addresses, some not.
I didn't want my class implement UIViewController, but it has to so it can be the delegate for the MailComposer. Otherwise,...
I'm developing a game for the iPhone. I've decided that 30FPS is plenty so I've written some code that only allows the App to present the render buffer every 1/30 of a second. When I tried to verify this with Instruments I got varying information.
On an iPod Touch (2009 edition, 32G) it reports 30 FPS for Core Animation Frames Per Sec...
I'm using the FreeType2 library in an iPhone project, and I'm trying to simply load a TTF file from the system, if possible.
FT_Library library;
FT_Face face;
int error;
error = FT_Init_FreeType( &library );
if ( error == 0 )
printf("Initialized FreeType2\r\n"); /* Prints */
error = FT_New_Face(library, "/System/Library/Font...
Okay, so, I'm all new to iPhone and stuff, but I'm not even at programming, I have many years of experience with ActionScript 2.0 and 3.0, I want to set up a view, that I can also pass variables to. The view is gonna draw everything with Quartz.
I tried to make another game where I tried to add a pointer to a NSMutableArray to the view ...
I have functionality built in python on a central server. I wish to expose this api over the network to an iphone application. What would be the best way to do that?
Is it possible to create web services in python and have the iphone app use those? If so could anyone give me pointers as to how to create web services in python.
If someo...
I have setup my Logic Tests following the instructions on http://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/iphone_development/135-Unit_Testing_Applications/unit_testing_applications.html.
I could test a couple classes successfully.
But I got error when testing the following:
- (id)init {
if (self = [super init...
I am trying to set some text on a label
descriptionLabel.text = [NSString stringWithFormat:mySTUser.bio];
The bio property of mySTUser is an NSString. Sometimes it is not an NSString when I set it. How can I check if mySTUser.bio is an NSString so I can prevent it from being assigned to my label text?
...
Hey guys, so I've got my NSFetchedResultsController working fine under the 3.1 SDK, however I start getting some weird errors, specifically in the delegate methods when I try it under 3.0. I've determined that this is related to the NSFetchedResultsControllerDelegate methods. This is what I have set up.
The inEditingMode stuff has to do...