I am making one application in which i want to parse pdf document.I dont know how to implement.Please provide me some sample code and document.thanks in advance.
I have an application that I'm currently building that requires me to display a visual update on the application it self. example:
The weather app displays 14 degrees celcius and some clouds as its application icon. When the weather changes there is an update to the way the icon looks without having to open the weather app. The applications icon changes to reflect the update in weather. You can then open the weather app to get more information if need be.
In my application I need to have an update system like that which shows the user information without opening the application. If they would like more information they can open the application then.
I have no idea how to accomplish this task at the moment. I hope someone will be able to help or point me in the right direction. Thank you for your time.
Hello. I am looking for those arrow icons (a left white arrow and a white right arrow) that are used on the lower toolbar of the Photo Library (or Camera Roll). I also have seen them on the Facebook app and some other custom apps. I am surprised that they are not built in "UIBarButtonSystemItem" icons. Can anybody point me to these icons?
Is it possible to load a short video file and - once loaded - select a specific frame and display that frame in a view? If there is no native support for this, how about an open source alternative?
Thanks in advance.
-Doug
what is the best way to check the strength of a password in iOS development?
I came across this post:
What is the best way to check the strength of a password?
but this is not iOS specific. My question is - Does Apple or third party libraries provide any libraries by default which I can use to check if the user entered a secure password?
If not, then as the above post says, is using regular expressions the best way?
Does Apple have any requirements which our app needs to implement to make sure user has a secure password?
I am planning on using the keychain to store the password.
In what format the content data is placed on server so that when user buy content from server he can use new content . also if this data is in compressed format then how to uncompress it in application ?
Hi guys!
First of all, sorry for my posibly bad english...
I got a surely big stupid question...
In my enterprise have an automatic door system, that is opened with a HTTP GET request to a file.
Example:
http://ipaddress/rc.cgi?o=1,50
Where the o=number indicates the amount of seconds that the automatic door will run.
The is no need for authentification or nothing (that is made by LAN Radius).
So, the question is...
How can I make a single button (for example in the springboard) that when you touch it, runs the GET request?
You thing that it should be possible with NSURLConection ?
Thanks for all
I have an app with a tab bar, and nav controllers in each tab. When user shakes the device, a UIImageView appears as a child view in the nav controller. But the UIImageView must contain a special image, depending on the device's current orientation.
If I write just
- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)
if (interfaceOrientation == UIInterfaceOrientationPortrait|| interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown) {
//Code
}
else if (interfaceOrientation == UIInterfaceOrientationLandscapeRight||interfaceOrientation == UIInterfaceOrientationLandscapeLeft) {
//Code
}
}
The view just goes crazy if user rotated the device before shaking. Is there a method to get iPhones current orientation?
i have a c++ class with CGrect variable and i'm getting segfault when trying to access it.
class Parent
{
//with some virtual functions/dtors
};
class Child
{
public:
void SetRect(CGRect rect) { mRect = rect; }
CGRect GetRect() { return mRect; }
int GetIndex() { return mIndex; }
private:
CGRect mRect;
int mIndex;
};
i'm doing
CGRect rect = childPtr->GetRect();
from object c code and it segfaults.
I printed *childPtr just before the call and rect looks fine with intended data value.
int index = childPtr->GetIndex();
from same object c code(*.mm), works fine though.
Any idea why I'm getting segfaults?
Thank you
edit -
It's got something to do with virtual functions.
(gdb) p singlePuzzlePiece-GetRect()
Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_PROTECTION_FAILURE at address: 0x00000001
0x00000001 in ?? ()
Cannot access memory at address 0x1
The program being debugged was signaled while in a function called from GDB.
GDB remains in the frame where the signal was received.
To change this behavior use "set unwindonsignal on"
Evaluation of the expression containing the function (at 0x1) will be abandoned.
(gdb)
Somehow, the function is not properly compiled?
I have UITextView for text, after user press DONE, I convert text to UIImageView and show it. It works with one line of text very good,
and Screenshot 1
. But if user types two lines, or more: the result is still one line??? Screenshot 2
I want to display two or more lines in UIimageView
Can anybody help me! Thank you very much!
Here is my code:
-(UIImage *)convertTextToImage : (ObjectText *) objT;
{
UIGraphicsBeginImageContext(CGSizeMake(([objT.content sizeWithFont:objT.font].width+10), ([objT.content sizeWithFont:objT.font].height+10)));
[[objT getcolor] set];
[objT.content drawAtPoint:CGPointMake(5, 5) withFont:objT.font];
UIImage *result = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
return result;
}
We are creating a video intensive app and want to be sure that adaptive streaming is required (given that we need to write an automated transcoding and segmentation system to support this). Does anyone know if the YouTube app is using adaptive streaming?
Hi.
Among many animation scenarios, there are times when I want an object to move a straight line then change direction, move another straight line and so forth.
Assuming I would use either UIImageView or CABasicAnimation with image arrays.
Does it make difference to provide more images when the object is moving in a straight line?
For example,
point1 ---------point2 ------- point3 (all points are in a straight line)
Providing an image at point2 to UIImageView or CABasicAnimation, gives any better animation result, assuming I don't need to change the animation speed along the course?
If I were flashing each image myself, yes it would make the animation look smooth, but I'm giving the images to UIImageView/CABasicAnimation, and wonder what they do.
Thank you
I checked this posting, so it was impossible to do it.
But it's old posting, and somebody are saying me there is an app which can change wallpaper(lock screen). Is this allowed now?
My view hierarchy looks like this:
tab bar - navigation bar - table view - view 1 - view 2 (UIWebView)
How can I rotate view 2 so it can be displayed in both landscape & portrait mode?
I'm fairly new to Objective-C and am confused on what falls under the unbrella of a "private API" that could cause Apple to reject my app. Does this include adding methods to existing classes? For example, I found some code on stackoverflow to recolor the tab bar icons for UITabBars with this extension to the UITabBarItem class. Is this considered a "private API"? If not, what does?
@interface UITabBar (ColorExtensions)
- (void)recolorItemsWithImage:(UIImage *)image shadowColor:(UIColor *)shadowColor shadowOffset:(CGSize)shadowOffset shadowBlur:(CGFloat)shadowBlur;
@end
Hi, in my application the first view is an UIView with a couple of uilabel and an uibutton to do the login.
I would to show an uinavigationcontroller with a table after the login, so with the action of the button.
I know how to set up a working Navigation Controller starting with the Xcode Template but i dont know how to load this as a "Second View"
Any help?
Hi,
On some app , I see when one link touched , use safari for open link and quit from current app.
I want use from this feature for run messages app from other app , Can I do this? if yes, how can?
thanks,...
I have sql query statement which used to display the contents in the table.The sql statement consist of a where clause which is to be appended with numeric value as 1 ,2 3 etc depends upon the previously selected content.I am having the numeric value as int and i want it to append to sql statement which is const char.how can i append both the values.Please help me out.
My query is == select * from Book where id=1;
i have the id value is integer
Thanks.
Hi,
I want to provide a picker to the user to select a country.
I've had a look in the NSLocale docs and I can get a list of all of the country codes supported on the device, which feels like a start:
Code:
NSArray *codes = [[NSArray alloc] initWithArray:[NSLocale ISOCountryCodes]];
But I can't work out if there is a programatic way to convert this array into country names...
Ideally this list would be localized as well, i.e. show the country name in the user's preferred language.
Can anyone point me in the right direction?
I want to write an application that allow user to count down the time. The time will be displayed using label. I want to update the label every second, how can I do it? or which API is suitable for me to do this? thz in advance.
I am using Sqlite database in my app.I Have 3 tables in database(group, category & categorygroup).I want to retrieve the contents from the category table with reference to the primary key of the group table.category group act as a junction table which as both the primary keys of group and category .How can i achieve that.Please help me out,Thanks