Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 iphone 编程新手。任何人都可以告诉我如何在 sqlite 数据库中存储图像路径,我现在如何在数据库中存储图像但我不想存储图像。我只想在照片库中存储图像的路径。
请任何人告诉我。谢谢
如果您使用fmdb作为 SQLite 包装器,那么它只是一个简单的插入,例如:[db executeUpdate:@"INSERT INTO myTable (name) VALUES (?)", YOUR_IMAGE_PATH]。否则,如果是普通 SQLite,你可以参考这个问题
[db executeUpdate:@"INSERT INTO myTable (name) VALUES (?)", YOUR_IMAGE_PATH]
实现UIImagePicker委托
- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info { NSURL *imageURL = [info valueForKey:UIImagePickerControllerReferenceURL]; //save the URL to database }
Here's my simple jQuery code in which is used to hide/show a dynamic element
$('.network').click(function() { if($("a[data-network='all']").hasClass('active')) {