I'm sure I have something dumb wrong, but I'm trying to pass the data set in a UIDatePicker from one view to another (I'm using the Utility Template in Xcode).
I've written out all of the pertinent code below.
FlipsideViewController.h
@interface FlipsideViewController : UIViewController {
IBOutlet UIDatePicker *datePicker;
}
@...
I have a UIImageView that is being rounded on my custom drawn UITableViewCell:
rect = CGRectMake(13, 10, 48, 48);
avatar = [[UIImageView alloc] initWithFrame:rect];
[self.contentView addSubview: avatar];
CALayer * l = [avatar layer];
[l setMasksToBounds:YES];
[l setCornerRadius:9.0];
I ...
I would like to have an NSTimer which executes every 1 second and have another NSTimer which executes within that timer slightly less than 1 second.
Actually I am not sure what is the best way to do this, but I would like a random image to appear every second and then disappear after after that second.
So I need some kind of stall or...
I'm relatively new to Objective C and while I've been trucking right along writing iPhone apps, I think I need some help understanding something.
I'm storing a dynamic list of strings in an NSMutableArray, which is a property of my main class. In my initialization I alloc and init to store 100 items:
stringList = [[NSMutableArray alloc...
Hi,guys. i want to load "amount of UIImages" from PhotoAlbum at a time and display on the UIView.
in iOS3 ,it may like :
NSString *file_path = @"/var/mobile/Media/DCIM/100APPLE/"
NSArray *imageSource = [fileManager contentsOfDirectoryAtPath:file_path error:nil] ;
UIImage *image = [UIImage imageWithContentsOfFile:[imageSource objectAt...
I am pushing a new view controller called SecondViewController from my FirstViewController.
I have a method called build2ndView which I call on my view SecondViewController and it adds a bunch of items to a UIScrollView.
When should I call this build2ndView method? In the SecondViewController's viewdidLoad method?
The reason I'm aski...
this is my code :
<div id="a" ontouchstart="touchstart(event);" style="width:100px ; height:100px;background:red;"></div>
<script src="jquery-1.4.2.js" type="text/javascript"></script>
<script>
function touchstart(event){
$('#a').css('width','1000px')
}
</script>
what's wrong with my code.
thanks
updated:*
w...
i have a integer that keep counting when tap
so when tap%2==0 its even else odd
but when i tap i am popping 1 image and next tap 1 more image but after that my tap value is not increasing
so how to keep inc the value on just touch event whether its on image or not
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{NSLo...
- (void)applicationWillTerminate:(UIApplication *)application {
NSLog(@"applicationWillTerminate"); //======>1
}
- (void)dealloc {
NSLog(@"dealloc"); //=======>2
[window release];
[super dealloc];
}
why don't 1& 2 textout the msg when i quit this program with debug???
...
Hi Stackoverflow
I am doing a map based application in iphone and i am need to get the location of the center of the map view. I need to get the location updated when the user Drags/Moves/Zoom the mapview. So that I can get the lat/lng information from the map and can sent these information to the google api to get the address info.
Ca...
There i have a problem. When i add button to my alert, but if the button numbers are more than 6, the button will show beyond the alert view frame. How can i display them correctly just like a scroll view?
...
Hey guys, I have some questions would like to ask:
I wanna ask how can I store the image so that next time when the user open the app and the app will show the image which previously he just choose it?
The image will be taken from either Photo Library or Camera Photo so I don't think I can get the path for the photo and store only the ...
Hi Guys
I am new iphone programmer.
in iPhone, I try to get XML data from my server.
-(void)parser:(NSXMLParser *) parser foundCharacters:(NSString*) string{
NSLog(string);
}
My XML have format like below:
<?xml version="1.0" encoding="utf-8" ?>
<test>
<value1>I can get this value of element</value1>
<value2>Không thể ...
Now that UIImage imageNamed is using @2x images for iOS4's retina display, there is an obvious concern that since the images are now twice the size (pixels x pixels), that they will also be twice four times the size in memory.
I know everyone stated something like you have a limit of 24mb in memory for the old devices (even though that ...
So I basically have two subviews within my main view. I created each subview by going to the library in IB and dragging a view onto my main nib file and then positioning controls on them.
Now, I'd like to flip between these views via a "flip" button. What I don't understand is how I can programmatically do this.
My question is: do I "...
Hi,
IN my application I m using UITABleView in grid format which contain 16 columns .
So my query is I want horizontal scroll bar inn UITAble view and how to apply it in codes.
Please send me necessary code for it.
Thanks in Advance
...
Hi all,
i am integrating twitter in my iphone application.when i am entering the username and password and clicking the login button it navigates me to the updateController page where user can post tweet but when i click on the post tweet button it gives me an error that
A server with the specified hostname could not be found. http://t...
Hi all,
I am developed one iPhone application which is working good in iphone 3.0.
While i am doing comparability with 4.0 it is giving some deprecated workings.
Please find the code below.....
[[UIApplication sharedApplication] setStatusBarHidden:YES animated:NO];
Note: this is working fine in 3.0 but giving warning in 4.0
[[UIAp...
I would like to achieve a UITableViewCell to look like this image (following/tweets/etc):
...
I am getting this error and boz of this my app is getting crashed
GDB: Data Formatters unavailable(Error Calling dlOpen for: "/ / libXcodeFebuggerSupport.dylib" : dlopen(/developer/usr/lib/libXcodeDebuggerSupport))
.dylib,10) no suitable image found
I have no idea what this error means.
Plz suggest me solution.
regards
...