Hi everyone,
I'm trying to make a predicate that includes special characters
For example:
[[myIngredients filteredSetUsingPredicate:[NSPredicate predicateWithFormat:@"name BEGINSWITH[c] %@", [alphabet objectAtIndex:idx]]];
Here I will get all the ingredient which starts with (let say for idx = 5) 'e'. As I have to do my app in englis...
For some reason, even though I disable the auto-cap and auto-correct of my UITextField, it's still capitalizing the first letter of my input.
Here is the code:
UITextField* textField = [[[UITextField alloc] initWithFrame:CGRectMake(90.0, 10.0, 213.0, 25.0)] autorelease];
[textField setClearButtonMode:UITextFieldViewModeWhileEditing];
t...
I'm trying to save a UIImageView image to a png file, and then use that file as a GLTexture.
I'm having trouble with this, when I try to run my code in the simulator, XCode says it succeeded, but the simulator crashes with no error messages. Can someone help me with this?
Here is my code:
NSString *dataFilePath = [NSHomeDirectory() str...
I want to play an animation(Gif) or a movie instead of Default.png. Is that possible? I tried what is described in this blog :http://www.cuppadev.co.uk/iphone/playing-animated-gifs-on-the-iphone/ but I don't know how to play a Gif animation instead of Default.png
...
i want to create a webpage on iphone ,
but i can't complete it in a simple way,
this is my code:
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<meta http-equiv="Content-Type" content="text/html; charse...
I have a custom UITableViewCell. In its function - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier, I need to know the cell height as defined in the tableView function heightForRowAtIndexPath so I can properly position UITextField, UIButton, etc in the cell. . Any ideas?
...
I cannot figure out what is obscuring my buttons. The first image shows the buttons that I want to click. They are clickable while the view is contracted like this, but when the view is expanded like in the second image, the buttons are no longer clickable. There seems to be another view obscuring the buttons. Any thoughts on what might ...
This is what I'm trying to do, and I'm not sure if it's possible using UIScrollView. First, I don't care about zooming, all I care is that the user is able to scroll through images just like the Photo App, this I got. But how do I know which image he is viewing while using UIScrollView? For instance, if he stops on the 3rd image out of 1...
I have a UINavigationController with a UITableViewController in it. I want to show a ToolBar on the bottom with UIBarButtonItem's. The ToolBar is showing up, but the buttons won't appear. Anyone knows why?
- (void)viewDidLoad {
[super viewDidLoad];
[[self navigationItem] setTitle:@"Selections List"];
[[self navigatio...
I know similar questions have been asked before.
I'm using the Sync Demo app I found online here, which uses Picture Sharing as a guide.
I've integrated it into my desktop and iphone apps and have the connection working, but am clueless as to how to actually sync my objects.
Is it as simple as
if ([iphone Object] != [desktop object])...
Hi,
I want to allow user to enter only english alphabets and characters. How can i prevent user from entering other characters than english.
Thanks,
Jim.
...
I drag a TabBar controller into "MainWindow.xib", then put a Navigation controller into TabBar controller, So one of my tab page is navigation page.
I set the root view of Navigation Controller (NavRootviewController.h / .m)
Give me one way to call -pushViewController: animated: ?
...
Hello ! every one.
I am having a little query regarding Extracting specifically images ( only images ) from a supplied PDF document in iPhone Application.
I have gone through the documentation of apple - But I am failure to find it.
I have done following efforts to have the Image from PDF Document.
-(IBAction)btnTappedImages:(id)send...
Hi all,
Does anyone else notice that the contentOffset of UIScrollView doesnt update during a flick gesture?
It only updates after the flick gesture has totally completed, when the flick gesture is finished.
After the finger has left the screen, the scrollview keeps moving, in the decelerating phase. but this isnt reflected in the co...
I have a managed object with a dueDate attribute. Instead of displaying using some ugly date string as the section headers of my UITableView I created a transient attribute called "category" and defined it like so:
- (NSString*)category
{
[self willAccessValueForKey:@"category"];
NSString* categoryName;
if ([self isOverdue]...
I was running myapp on an iPod touch and I noticed it missed some libraries. Is that the reason?
[Session started at 2010-03-19 15:57:04 +0800.]
GNU gdb 6.3.50-20050815 (Apple version gdb-1128) (Fri Dec 18 10:08:53 UTC 2009)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, an...
Hi, all!
I'm developing an application in which I need to include an option "Share on Twitter " click upon which the application's itunes address is automatically twitted to the user's Twitter account(ofcourse I'm accepting user's id and password). I was able to do that.
Now I want to add a button "Follow" click upon which will...
I have 10 views with UINavigationController
in hiereachy
now when i want to go back from 10 to 9 ,and so on by back button
which method should i use?
1>popviewCOntroller
2>popToViewController
I have set fixed value for all views.at application launch i get that value
for that value i intialize rootviewController with use of UINa...
Hello,
How to get file size of pdf,gif,doc etc using xcode.
suppose to i get pdf file form resorce folder so how can i get size of for this file.
is there any way?
Thanks you,
...
Hi, in the following piece of code I got from a book.
The NSString *pPath which is defined in the class as an instance variable.
@interface MainViewController : UIViewController {
NSString *pPath;
}
In the implementation after being set it is being retained. I assume that with the assignment the object is automatically retained (...